{
  "openapi": "3.0.0",
  "info": {
    "title": "API Reference",
    "version": "2026-03-06",
    "contact": {
      "email": "docs@zuora.com"
    },
    "description": "\n\nWelcome to the v1 API reference for the Zuora Billing, Payments, and Platform!\n\n\nTo learn about the common use cases of the Zuora v1 API, check out the [API Tutorials](https://developer.zuora.com/docs/get-started/tutorials/).\n\n\n**Important**: This API Reference only showcases the parameters, fields, and behaviors available for the latest API minor version (`2025-08-12`). \nFor more information about Zuora API versions, see [API versions](https://developer.zuora.com/v1-api-reference/api-versions/) and [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).\n\n\nWe recommend that you upgrade to the latest API version to take advantage of the latest Zuora capabilities. \nFor instructions about upgrading the API version, see [API upgrade guide](https://developer.zuora.com/v1-api-reference/api-upgrade-guide/).\n\nTry the v1 API in our Postman collection:\n\n  \n<a href=\"https://god.gw.postman.com/run-collection/931729-e324e9d4-9443-4759-8862-a25aa186dbbd?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D931729-e324e9d4-9443-4759-8862-a25aa186dbbd%26entityType%3Dcollection%26workspaceId%3D96800895-4ec5-4a21-af99-d701ba81924e\"><img src=\"https://run.pstmn.io/button.svg\" alt=\"Run In Postman\" style=\"width: 128px; height: 32px;\"></a>\n\n\nSome of our older APIs are no longer recommended but still available, not\naffecting any existing integration. To find related API documentation, see\n[Older API\nReference](https://developer.zuora.com/v1-api-reference/older-api/overview/).\n\n### More OpenAPI specification options\n\nTo support your integration with our OpenAPI specifications, whether using in-house solutions or third-party tools, we provide the following resources:\n\n- **Order-to-Cash operations (detailed)**: Download <a href=\"https://developer.zuora.com/yaml/apis/zuora-openapi-for-otc.yaml\" download>Order-to-Cash OpenAPI spec</a>, which includes full descriptions and examples\n- **Order-to-Cash operations (compact)**: Download <a href=\"https://developer.zuora.com/yaml/apis/zuora-openapi-for-otc-compact.yaml\" download>Order-to-Cash Compact OpenAPI spec</a>, which excludes descriptions and code examples.\n- **Full OpenAPI spec (compact)**: Download <a href=\"https://developer.zuora.com/yaml/apis/zuora-openapi-full-compact.yaml\" download>Compact OpenAPI Spec</a>, which covers the entire API set without descriptions or samples.\n  \nIf you need a different API specification beyond the options above, contact <a href=\"https://support.zuora.com\" target=\"_blank\">Zuora Global Support</a>, and we will provide a custom spec tailored to your needs.\n"
  },
  "servers": [
    {
      "url": "https://rest.test.zuora.com",
      "description": "US Developer & Central Sandbox (incl. Test Drive)"
    },
    {
      "url": "https://rest.sandbox.na.zuora.com",
      "description": "US API Sandbox Cloud 1"
    },
    {
      "url": "https://rest.apisandbox.zuora.com",
      "description": "US API Sandbox Cloud 2"
    },
    {
      "url": "https://rest.na.zuora.com",
      "description": "US Production Cloud 1"
    },
    {
      "url": "https://rest.zuora.com",
      "description": "US Production Cloud 2"
    },
    {
      "url": "https://rest.test.eu.zuora.com",
      "description": "EU Developer & Central Sandbox"
    },
    {
      "url": "https://rest.sandbox.eu.zuora.com",
      "description": "EU API Sandbox"
    },
    {
      "url": "https://rest.eu.zuora.com",
      "description": "EU Production"
    },
    {
      "url": "https://rest.test.ap.zuora.com",
      "description": "APAC Developer & Central Sandbox"
    },
    {
      "url": "https://rest.ap.zuora.com",
      "description": "APAC Production"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "description": "A Test Environment is a dedicated sandbox tenant designed for development, integration, and user acceptance testing of your system configurations and business processes.\n",
      "name": "Test Environments"
    },
    {
      "description": "A Test Environment Job represents an asynchronous operation initiated to refresh a Test Environment. These jobs track the status and progress of environment provisioning and refresh.\n",
      "name": "Test Environment Jobs"
    },
    {
      "description": "A Test Environment Notification is an automated email dispatched to inform stakeholders when a Test Environment Job is completed or cancelled.\n",
      "name": "Test Environment Notifications"
    },
    {
      "description": "Actions are operations that are batch in nature. For example, the \"create\", \"update\", \"delete\", and other operations allow changes to up-to 50 objects at a time. The \"query\" operation will return up-to 2000 result records back at a time, before requiring additional pages of data to be returned via a subsequent \"queryMore\" operation.\n\nThe default WSDL version for Actions is 79. If you want to change the WSDL version, set the `X-Zuora-WSDL-Version` header. To find out in which WSDL version a particular object or field was introduced, see [Zuora SOAP API Version History](https://knowledgecenter.zuora.com/DC_Developers/G_SOAP_API/Zuora_SOAP_API_Version_History).\n\n**Note**: Actions do not support the Invoice Settlement feature. This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. Actions also do not support the Orders feature.\n",
      "name": "Actions"
    },
    {
      "description": "Accounting Codes are commonly referred to as General Ledger Accounts or General Ledger Account Codes. In Zuora, the use of accounting codes are optional but recommended. \n\nThis section contains the operations that allow you to create, update, get, delete, activate, or deactivate accounting codes in Zuora.\n",
      "name": "Accounting Codes"
    },
    {
      "description": "A key step in configuring Finance is to create accounting periods in Zuora to match your company's financial calendar. \nThis allows Zuora to produce reports and data exports organized by accounting periods, and to perform the work of closing the accounting periods for the revenue sub-ledger.\n",
      "name": "Accounting Periods"
    },
    {
      "description": "Some operations in this section are similar to each other, but are\nprovided for different use scenarios. You should choose the one that best suits\nyour needs.\n\n\nFor example, the [Retrieve an account](https://developer.zuora.com/v1-api-reference/api/operation/GET_Account/) operation retrieves the basic information of an account, such as bill-to and sold-to contacts, billing and payments setup information, and metrics data for the account.\n\nThe [Retrieve an account summary](https://developer.zuora.com/v1-api-reference/api/operation/GET_AccountSummary/) operation returns the more detailed information of an account, such as bill-to and sold-to contacts, subscriptions, invoices, payments, and usages associated with this account.\n",
      "name": "Accounts"
    },
    {
      "description": "Delivery Adjustments are used to handle end customer delivery complaints for the Delivery Pricing charge model. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Delivery_Adjustments\" target=\"_blank\">Delivery Adjustments</a>.  \n",
      "name": "Delivery Adjustments"
    },
    {
      "description": "The Aggregate Query API (AQuA) is a REST API that executes multiple <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Query/Export_ZOQL\" target=\"_blank\">Export ZOQL</a> or <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Query/ZOQL\" target=\"_blank\">ZOQL</a> queries. The queries are performed in a sequential order and in a single read-only database transaction. \n\nAQuA enforces the following limits:\n\n- The maximum processing time per query is 3 hours. If a query in an AQuA job is executed for longer than 3 hours, this job will be killed automatically. See the <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API/Bulk_data__extraction_from_Zuora_using_AQuA\" target=\"_blank\">best practices for bulk data extraction with AQuA</a>.\n\n- AQuA enforces limits on both the stateful concurrent AQuA jobs and the stateless concurrent AQuA jobs per tenant:\n  - The maximum number of stateful concurrent AQuA jobs per tenant is 50.  - The maximum number of stateless concurrent AQuA jobs per tenant is 50.\nAQuA jobs in the following status are counted towards your concurrent AQuA job limits:\n  - Submitted  - Executing\nZuora system will reject the subsequent stateful or stateless job requests once the corresponding concurrent job limit is reached.\n\nFor more information about the Aggregate Query API(AQuA), see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/API/AB_Aggregate_Query_API\" target=\"_blank\">Aggregate Query</a>.      \n",
      "name": "Aggregate Queries"
    },
    {
      "description": "Zuora System Health dashboard for API (API dashboard) collects and displays data about API usage, failure, performance, and concurrency limit in near real time. It enables you to view all the APIs in your Zuora tenant within the last 14 days. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_System_Health/B_APIs_dashboard\" target=\"_blank\">APIs dashboard</a>.\n",
      "name": "API Health"
    },
    {
      "description": "Use attachments in Zuora to upload documents of various formats to associate additional information with accounts, subscriptions, invoices, credit memos, or debit memos. \nExample attachments could be purchase orders (PO's), tax exemption document, or ownership transfer forms.\n\nFor more information about attachments, see <a href=\"https://knowledgecenter.zuora.com/Billing/Tenant_Management/F_Attachments\" target=\"_blank\">Attachments</a>.\n",
      "name": "Attachments"
    },
    {
      "description": "Zuora System Health dashboard for Bill Run (Bill Run dashboard) collects and displays data about bill run usage, failure, and performance in near real time. Through the Bill Run dashboard, you can view data about all the bill runs in your Zuora tenant within the last 30 days. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_System_Health/C_Bill_Run_dashboard\" target=\"_blank\">Bill Run dashboard</a>.\n",
      "name": "Bill Run Health"
    },
    {
      "description": "Use the Bill Run call to create ad hoc bill runs and Post, Cancel, Query, and Delete bill runs. \n\nFor more information about bill runs, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/G_Bill_Runs\" target=\"_blank\">Bill runs</a>.\n",
      "name": "Bill Run"
    },
    {
      "description": "Billing documents include invoices, credit memos, and debit memos. \n\n**Note**: Credit memos and debit memos are only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> feature enabled. \n",
      "name": "Billing Documents"
    },
    {
      "description": "A billing preview run asynchronously generates a downloadable CSV file containing a preview of future invoice item data and credit memo item data for a batch of customer accounts. \n\n**Note**: Credit memo item data is only available if you have the <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> feature enabled. \n",
      "name": "Billing Preview Run"
    },
    {
      "description": "**Note** - The APIs in this section are legacy APIs. Zuora recommends using the newer, faster APIs for managing products and catalogs more efficiently instead.\nFor more information, see our latest <a href=\"https://developer.zuora.com/v1-api-reference/api/tag/Commerce/\"\ntarget=\"_blank\">Commerce API</a>.\n\n\nThe Zuora Billing product catalog is where you define your products\nand pricing. The product catalog's ability to handle sophisticated pricing models\ngives you the power to easily adapt your pricing to customer and market needs,\nto grow your business and drive more revenue. \n",
      "name": "Catalog"
    },
    {
      "description": "**Note** - The APIs in this section are legacy APIs. Zuora recommends using the newer, faster APIs for managing products and catalogs more efficiently instead.\nFor more information, see our latest <a href=\"https://developer.zuora.com/v1-api-reference/api/tag/Commerce/\"\ntarget=\"_blank\">Commerce API</a>.\n\n\nA catalog group is used to group a list of product rate plans with\na specific grade.\n",
      "name": "Catalog Groups"
    },
    {
      "description": "Configuration Templates in Zuora Deployment Manager enable you to configure your tenants in minutes by importing a templated metadata configuration file. This feature eliminates the need for long manual configuration processes that would have previously taken hours. You will be able to access a comprehensive repository of industry-specific templates. It will be easier for you to deploy and release. To use this API  for migrating metadata from a source tenant to a destination tenant,   you should authenticate using credentials of the source tenant   The user will have to provide the client id and secret key from the sou.rce tenant.   To understand the known behavior of configuration templates and APIs, see the following sections: [Product Catalog deployment known facts and system behavior](https://knowledgecenter.zuora.com/Zuora_Platform/Tenant_Management/Deployment_Manager/CB_Product_Catalog_deployments/AE_Known_facts_and_system_behavior) [Product Catalog deployment FAQs](https://knowledgecenter.zuora.com/Zuora_Platform/Tenant_Management/Deployment_Manager/CB_Product_Catalog_deployments/AF_Product_Catalog_deployment_FAQs) [Deployment Manager Known Facts and Limitations](https://knowledgecenter.zuora.com/Zuora_Platform/Tenant_Management/Deployment_Manager/C_Deployment_Manager_Limitations) \n",
      "name": "Configuration Templates"
    },
    {
      "name": "Metadata",
      "description": "The Metadata API in Zuora promotes a programmatic way to retrieve, compare, and validate \nmetadata within Zuora tenants for performing create and update actions between the source and the target.\nTo use this API  for migrating metadata from a source tenant to a destination tenant, \nyou should authenticate using credentials of the source tenant. \nThe user will have to provide the client id and secret key from the source tenant. \nTo understand the known behavior of configuration templates and APIs, see the following sections:\n[Product Catalog deployment known facts and system behavior](https://knowledgecenter.zuora.com/Zuora_Platform/Tenant_Management/Deployment_Manager/CB_Product_Catalog_deployments/AE_Known_facts_and_system_behavior)\n[Product Catalog deployment FAQs](https://knowledgecenter.zuora.com/Zuora_Platform/Tenant_Management/Deployment_Manager/CB_Product_Catalog_deployments/AF_Product_Catalog_deployment_FAQs)\n[Deployment Manager Known Facts and Limitations](https://knowledgecenter.zuora.com/Zuora_Platform/Tenant_Management/Deployment_Manager/C_Deployment_Manager_Limitations)\n"
    },
    {
      "description": "The Bulk Data API operations allow you to manage bulk data loader services and perform programmatic CRUD (Create, Update, Read/export, Delete) operations. \\\nTo perform data ingestion with a CSV file in Zuora Billing using the Data Loader Bulk Data APIs, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Data_Management/Data_Loader/Tutorial_for_Bulk_job_API_with_CSV\" target=\"_blank\">Tutorial for Bulk job API with CSV</a>. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Data_Management/Data_Loader/Process_Bulk_Job_with_JSON-lines_in_Data_Loader\" target=\"_blank\">Process Bulk Job with JSON-lines in Data Loader</a>.\n",
      "name": "Bulk Data"
    },
    {
      "description": "The Commerce APIs provide access to product catalog, plans, charges, and order\nmanagement functionality in Zuora. These endpoints are used to create, update,\nand query product rate plans, charges, and dynamic pricing details that drive\nsubscription and billing behavior.\n\nIn a typical use case, the Commerce APIs are called to provision new products\nor plans in the catalog, configure dimensional pricing, or submit orders that\ncreate and modify subscriptions.\n\nChanges made with these APIs affect the product catalog and active subscriptions,\ndepending on the endpoint. Catalog changes update future subscription behavior,\nwhile order operations directly impact customer subscriptions in real time.'\n",
      "name": "Commerce"
    },
    {
      "description": "A commitment represents a minimum or maximum spend amount a customer is obligated to pay within a spend period, compared with customer's actual fees incurred in connection with customer's accounts and their use of applicable products. \nThe Commitments API allows you to retrieve details of the commitments a customer has.\n",
      "name": "Commitments"
    },
    {
      "description": "Every time a contact is updated a snapshot is taken.\n",
      "name": "Contact Snapshots"
    },
    {
      "description": "Configurable Payment Retry APIs use basic authentication. The user name is the email address that you use for logging in Zuora. The password is the API token that is shown in the settings of Configurable Payment Retry.\nClick the drop-down arrow at the end of an endpoint to display the full endpoint. To learn more about the configuration and usage of Configurable Payment Retry, see [Configurable Payment Retry](https://knowledgecenter.zuora.com/Zuora_Payments/Configure_payment_orchestration/Payment_Retry/Configurable_Payment_Retry).\n",
      "name": "Configurable Payment Retry"
    },
    {
      "description": "A contact defines the customer who holds an account or who is otherwise a person to contact about an account. An account requires a contact for the `BillToId` and `SoldToId` fields before the account can be active.\n",
      "name": "Contacts"
    },
    {
      "description": "Credit memos reduce invoice and account balances. By applying one or more credit memos to invoices with positive balances, you can reduce the invoice balances in the same way that applying a payment to an invoice.\n\nFor more information about credit memos, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/B_Credit_and_Debit_Memos\" target=\"_blank\">Credit and debit memos</a>.\n",
      "name": "Credit Memos"
    },
    {
      "description": "The Event Trigger service manages the business events and trigger conditions that are defined on [Zuora Business Object Model](http://knowledgecenter.zuora.com/BB_Introducing_Z_Business/D_Zuora_Business_Objects_Relationship) or custom objects. When a Zuora object changes, the trigger conditions defined on the object are evaluated, and if any condition qualifies, a business event will be triggered and turned into a notification.\n\n**Note**: Event Triggers operations are only applicable to custom events.\n",
      "name": "Custom Event Triggers"
    },
    {
      "description": "If you use a custom exchange rate provider and upload rates with the Import Foreign Exchange Rates mass action, you can query custom foreign exchange rates from Zuora through API. \n\nThis feature is in **Limited Availability**. If you wish to have access to the feature, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n",
      "name": "Custom Exchange Rates"
    },
    {
      "description": "With Custom Objects service, you can define custom objects, extending the Zuora data model to accommodate your specific use cases.\n\nIf you use Postman, you can import the custom objects endpoints as a collection into your Postman app and try out different requests to learn how the API works. \n\nYou can sign up for a free account on the [Postman website](https://identity.getpostman.com/signup) and download the app in case you do not use Postman yet.\n\nNote that the Custom Object Definitions API is versioned by `Zuora-Version` in the request header. The response may be different for the same request with a different API version. Specify `Zuora-Version` in the request header if you expect a specific response schema.\n\n### Error handling      \nIf the Custom Objects API call fails, an error code will be returned in the response body. See See <a href='https://docs.zuora.com/en/zuora-platform/extensibility/custom-objects/custom-objects-api/custom-objects-api-error-code' target='_blank'>Custom Objects API error code</a> for details.\n",
      "name": "Custom Object Definitions"
    },
    {
      "description": "With Custom Objects service, you can create, update, delete and find custom object records.\n\nIf you use Postman, you can import the custom objects endpoints as a collection into your Postman app and try out different requests to learn how the API works. \n\nYou can sign up for a free account on the [Postman website](https://identity.getpostman.com/signup) and download the app in case you do not use Postman yet.\n\nNote that the Custom Object Records API is versioned by `Zuora-Version` in the request header. The response may be different for the same request with a different API version. Specify `Zuora-Version` in the request header if you expect a specific response schema.\n\n### Error handling      \nIf the Custom Objects API call fails, an error code will be returned in the response body. See <a href='https://docs.zuora.com/en/zuora-platform/extensibility/custom-objects/custom-objects-api/custom-objects-api-error-code' target='_blank'>Custom Objects API error code</a> for details.\n",
      "name": "Custom Object Records"
    },
    {
      "description": "With Custom Objects service, you can submit a bulk job request to create, update, or delete custom object records in a batch.\n\nIf you use Postman, you can import the custom objects endpoints as a collection into your Postman app and try out different requests to learn how the API works. \n\nYou can sign up for a free account on the [Postman website](https://identity.getpostman.com/signup) and download the app in case you do not use Postman yet.\n\nNote that the Custom Object Jobs API is versioned by `Zuora-Version` in the request header. The response may be different for the same request with a different API version. Specify `Zuora-Version` in the request header if you expect a specific response schema.\n\n### Error handling      \nIf the Custom Objects API call fails, an error code will be returned in the response body. See <a href='https://docs.zuora.com/en/zuora-platform/extensibility/custom-objects/custom-objects-api/custom-objects-api-error-code' target='_blank'>Custom Objects API error code</a> for details.\n",
      "name": "Custom Object Jobs"
    },
    {
      "description": "Open Payment Method (OPM) service is a framework developed by Zuora, which allows you to integrate your custom payment method to Zuora subscription, billing, and revenue management in a dynamic and flexible manner. With the support of the OPM service, you are able to define your custom payment method types and create custom payment methods of the defined types. The custom payment method of the defined type can only be used with the custom payment gateway that you set up through the Universal Payment Connector (UPC) service. It cannot be used with the Zuora out-of-box gateway integrations such as GoCardless, Stripe, etc.\n\nYou can define up to 20 custom payment method types for one tenant. Do not define your fields with the [Zuora-reserved fields](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/MB_Set_up_custom_payment_gateways_and_payment_methods/C_Configure_and_manage_your_custom_payment_method_types_through_Zuora_REST_APIs#Zuora-reserved_fields).\n\nSee [Set up custom payment gateways and payment methods](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/MB_Set_up_custom_payment_gateways_and_payment_methods) for more information about the OPM and UPC services.\n\nNote: You can only use the bearer token to access the \"Custom Payment Method Types\" API operations. Access with `apiAccessKeyId` and `apiSecretAccessKey` is not supported.\n",
      "name": "Custom Payment Method Types"
    },
    {
      "description": "A custom scheduled event notification is evaluated at the scheduled time of the related scheduled event on a daily basis. If the date meets the combination of the base field and the notification parameters, the notification will be triggered immediately.\n\nFor more information about Custom Scheduled Events, see <a href=\"https://knowledgecenter.zuora.com/Central_Platform/Events_and_Notifications/A_Z_Custom_Scheduled_Events\" target=\"_blank\">Custom Scheduled Events</a>.\n",
      "name": "Custom Scheduled Events"
    },
    {
      "description": "If you are an <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> user, you can use the data backfill operations to perform, view or stop data backfill tasks.\n",
      "name": "Data Backfill"
    },
    {
      "description": "The Data Labeling APIs help you to label your existing data with organization(s) in Zuora. \n\nOnce you turned on Multi Org feature, if you don't label your existing data, they are simply unlabeled, and unlabeled data can be accessed by all organizations in your tenant.\n\nTo limit the access of your existing data, you need to label them with organization(s) you defined in the organization hierarchy management setting page. Once labeled, the data can only be accessed by users who have been granted with the labeled organization(s).\n\nNote that you have to enable the \"Multi Org\" feature before using the Data Labeling APIs. \n\n### General guidelines\n\n* Firstly, create the org hierarchy and determine the data categorization strategy, for example, by currency, by region, by custom fields etc.\n\n* You have to migrate all customer accounts before labeling products in the product catalog\n\n* You can leave the users at the root, just so long as you understand that the user would have access to all the Org Units within the Multi-org enabled tenant.\n\n### Order of object labeling\n\nExcept for `Account` and `Product`, there are no dependencies between objects, users can label them in parallel.\n\nBut please keep in mind that the data access control ensues from the object labeling. For example, if you label a scheduled `BillRun` with `US` org, when it's triggered next time, the bill run will only pick up customer accounts of the `US` org, not others.\n\nLikewise, labeling a user will change the user's visible data scope, for example, an `EU` user won't be able to see `US` accounts anymore.\n\n ### Caveats⚠️\n\nThis API is primarily designed for data migration to assist in  labeling existing datasets. \nIt may also serve for data corrections, such as  reassigning an account's organizational label, \nthereby transferring the account  and its transaction data from one organization to another. \n\n\nIt's important  to note that this process does not include business logic validation. \nUsers  should exercise caution and judgment when employing this API for data labeling tasks.\n",
      "name": "Data Labeling"
    },
    {
      "description": "The Data Query feature enables you to perform SQL queries in your Zuora tenant. To learn how to get started with Data Query, see [Overview of Data Query](https://knowledgecenter.zuora.com/DC_Developers/BA_Data_Query/A_Overview_of_Data_Query).\n",
      "name": "Data Queries"
    },
    {
      "description": "Debit memos increase the amount a customer owes. It is a separate document from the invoice. Debit memos can be used to correct undercharging on an invoice or to levy ad hoc charges outside the context of a subscription. Just like an invoice, debit memo balances can be settled by applying either a payment or a credit memo.\n\nFor more information about debit memos, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/B_Credit_and_Debit_Memos\" target=\"_blank\">Credit and debit memos</a>.\n",
      "name": "Debit Memos"
    },
    {
      "description": "You can use the [Describe an object](https://developer.zuora.com/v1-api-reference/api/operation/GET_Describe/) operation to get a reference listing of each object that is available in your Zuora tenant.\n\nBy default, the information returned by the \"Describe an object\" operation corresponds to the latest version of the Zuora WSDL.\n",
      "name": "Describe"
    },
    {
      "description": "With the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature, Zuora supports electronic invoices through an integration with partners that have a local presence, where required, which guarantees compliance with local invoice regulations. \n\nAll the operations in this section are available only if you have the E-Invoicing feature enabled.\n",
      "name": "E-Invoicing"
    },
    {
      "description": "Zuora System Health dashboard for Electronic Payments (Electronic Payment dashboard) collects and displays usage, failure, and performance data about electronic payments in near real time. It enables you to view all the electronic payments in your Zuora tenant within the last 30 days. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Zuora_System_Health/D_Electronic_Payments_dashboard\" target=\"_blank\">Electronic Payments dashboard</a>.\n",
      "name": "Electronic Payments Health"
    },
    {
      "description": "Zuora System Health dashboard for Tax Health (Tax Health dashboard) collects and displays usage, failure, and performance data about Tax in near real time. It enables you to view all the tax details in your Zuora tenant within the last 30 days. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/B_Set_up_Zuora_Billing/Apply_taxes/A_Zuora_Tax\" target=\"_blank\">Tax Health Dashboard</a>.",
      "name": "Tax Health"
    },
    {
      "description": "You can use the operations contained in this section to retrieve files such as export results, invoices, accounting period reports, and so on.\n",
      "name": "Files"
    },
    {
      "description": "Fulfillments are subordinate objects attached to their related order line item. Fulfillment items are subordinate objects attached to their related fulfillment. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items\" target=\"_blank\">Overview of Order Line Items</a>. \n",
      "name": "Fulfillments"
    },
    {
      "description": "Hosted payment pages allow your customers to set up a payment method, such as providing a credit card. Since it only handles the payment method, it is suitable for a simple workflow or a complex multi-page, multi-product workflow. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/LA_Hosted_Payment_Pages\" target=\"_blank\">Hosted Payment Pages</a>.\n",
      "name": "Hosted Pages"
    },
    {
      "description": "An import uploads content, especially when you have a large amount of content. The Import object contains all of the information you need to upload content, such as a large number of usage records. \n",
      "name": "Imports"
    },
    {
      "description": "Use invoice schedules to trigger invoice generation processes. \n\nFor more information about invoice schedules, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Billing_Schedule/Billing_Schedule_overview\" target=\"_blank\">Billing Schedule overview</a>.\n",
      "name": "Invoice Schedules"
    },
    {
      "description": "Invoices provides information about customers' accounts for invoices, for examples, dates, status, and amounts. \n\nFor more information about invoices, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/IA_Invoices/A1_Invoice_Introduction\" target=\"_blank\">Invoice</a>.\n",
      "name": "Invoices"
    },
    {
      "description": "Use journal runs to automatically create summary journal entities that are suitable for importing into your general ledger system.\n\nFor more information about journal runs, see <a href=\"https://knowledgecenter.zuora.com/Billing/Finance/F_Summary_Journal_Entries/h_Journal_Runs\" target=\"_blank\">Journal Runs</a>.\n",
      "name": "Journal Runs"
    },
    {
      "description": "Use mass updater to perform mass actions more easily.\n\nFor more information about mass updater, see <a href=\"https://knowledgecenter.zuora.com/Billing/Finance/Mass_Updater\" target=\"_blank\">Mass Updater</a>.\n",
      "name": "Mass Updater"
    },
    {
      "description": "Notifications are the actions taken to inform users or call third-party endpoints when a certain event happens. Typical actions include emails and callouts. Callouts typically refer to HTTP invocations, such as HTTP calls to REST services.\n\nZuora notification system processes the events in the same order in which they are triggered. The timing and delivery of notifications can still vary based on factors such as retries, concurrency, and network latency. But Zuora guarantees the best performance possible with the right performance boosters and tuning. \n\nNotifications are associated with Communication Profiles, which allow you to send specific event-driven notifications to targeted customers. Zuora provides the following Settings API to access the settings of Communication Profiles:* [Get all Communication Profiles](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Get_all_Communication_Profiles)\n  * [Create a new Communication Profile](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Create_a_new_Communication_Profile)\n  * [Modify a Communication Profile](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Modify_a_Communication_Profile)\n  * [Get all Notifications under a particular Communication Profile](https://knowledgecenter.zuora.com/DC_Developers/BB_C_Settings_API/Settings_API_tutorials/Get_all_Notifications_under_a_particular_Communication_Profile)\n",
      "name": "Notifications"
    },
    {
      "description": "The Zuora Mediation APIs provide a comprehensive set of endpoints to manage, test, run, and monitor usage meters. These APIs support actions such as running or testing specific meter versions, importing and exporting meter configurations, managing input files, performing event store operations, and ingesting usage data in real time via streaming. All APIs follow a consistent response structure to simplify integration and error handling. Use these APIs to automate and streamline your usage processing pipeline—from data ingestion to transformation and billing.",
      "name": "Meters"
    },
    {
      "description": "Zuora recommends that you use OAuth v2.0 to authenticate to the Zuora REST API. \n\nYou must first create an OAuth client in the Zuora UI before using the [Create an OAuth token](https://developer.zuora.com/api-references/api/operation/createToken) operation to create an OAuth token. See [Authentication](https://developer.zuora.com/rest-api/general-concepts/authentication/) for more information.\n",
      "name": "OAuth"
    },
    {
      "description": "System for Cross-domain Identity Management, or SCIM, is an API specification created to facilitate the management of people and groups of people in cloud-based applications and services.\n  Universal Identity SCIM API is built on top of the SCIM 2.0 specification and can be integrated with major Identity Providers like Okta, Microsoft Entra ID and OneLogin.\n\n\n\nZuora recommends that you use OAuth v2.0 to authenticate to the Zuora REST API. \n\nYou must first create an OAuth client in the Zuora UI before using the [Create an OAuth token](https://developer.zuora.com/api-references/api/operation/createToken) operation to create an OAuth token. See [Authentication](https://developer.zuora.com/rest-api/general-concepts/authentication/) for more information.\n\n### Prerequisites\n1. You need to have a One-ID account.\n2. You need to create OAuth 2.0 Clients.\n3. Use the client credentials to generate the bearer token.\n4. Generate the authentication token by hitting the endpoint.\n\n\n### Steps to generate the bearer token\n1. Hit the endpoint to get the token:\n   ```bash\n   curl --location 'https://one.zuora.com/oauth2/token' \\\n     --header 'Content-Type: application/x-www-form-urlencoded' \\\n     --data-urlencode 'client_id=52a1d024-b7cc-4d3d-8d0b-dd7b23959e10' \\\n     --data-urlencode 'client_secret=aQWDDjn3x9JXbMUQaddvBa2vQQMDCHXL8BgeER8' \\\n     --data-urlencode 'grant_type=client_credentials'\n   ```\n\n   You will get the response as below:\n   ```json\n   {\n     \"access_token\": \"eyJraWQiOiIxNTYwMDBkMi1lY2FjLTQxMGYtOTJmYy02Y2IxMjU1YjQ3NTAiLCJhbGciOiJSUzI1NiJ9.eyIzdWIiOiI1MWExZDAyNC1iN2NjLTRkM2QtOGQwYi1kZDdiMjM5NTllMTAiLCJhdWQiOiI1MWExZDAyNC1iN2NjLTRkM2QtOGQwYi1kZDdiMjM5NTllMTAiLCJuYmYiOjE2OTA1MzcyODksInNjb3BlIjpbImFkbWluIiwiZWMxNDFkYzItOTAxZS00ODEzLWEyNWQtZWY0ODBjZmYxZTI2Il0sImlzcyI6Imh0dHA6XC9cL2xvY2FsaG9zdDo5OTAwIiwiZXhwIjoxNjkwNTQwODg5LCJpYXQiOjE2OTA1MzcyODl9.NMZV-aERA8lTKPPsMtk_WK9ApvX-Bj-6FEIF9GP_duObzdReQkCA2ykcsPSmimw3IbJu7F4XbjZkwTCZL_vBiTaJlnQ7k3hXUzw30b3olDP2Dwc_W6Eh-CvT6s5ZxsFURCZJitfuqh82ezxHdT2lUdcDEMbELw9VpqUSBz0Dqh0tmfnFQyw4yX1be-jflT_0c8SvjyOFGRFScoxcPLq8TrrmpFvgxhT3MqowvQ9butxX6_4mTc3831FnJ6tQIihlBLH4DY11k38x3BBPzb0s9iVcEn7iczWbT0VrSr4A6g1ltATAHNChdzGTqGrhSN8JGG_PPCjJnHY_edaCmcPrUg\",\n     \"scope\": \"admin rc141dc2-901e-4813-a25d-ef480cff1e26\",\n     \"token_type\": \"Bearer\",\n     \"expires_in\": 3600\n   }\n   ```\n2. Use the access token in all the following API calls. Sample curl request:\n   ```bash\n   curl --location --request GET 'https://one.zuora.com/scim/v2/Schemas' \\\n     --header 'Authorization: Bearer eyJraWQiOiIxNTYwMDBkMi1lY2FjLTQxMGYtOTJmYy02Y2IxMjU1YjQ3NTAiLCJhbGciOiJSUzI1NiJ9.eyIzdWIiOiI1MWExZDAyNC1iN2NjLTRkM2QtOGQwYi1kZDdiMjM5NTllMTAiLCJhdWQiOiI1MWExZDAyNC1iN2NjLTRkM2QtOGQwYi1kZDdiMjM5NTllMTAiLCJuYmYiOjE2OTA1MzcyODksInNjb3BlIjpbImFkbWluIiwiZWMxNDFkYzItOTAxZS00ODEzLWEyNWQtZWY0ODBjZmYxZTI2Il0sImlzcyI6Imh0dHA6XC9cL2xvY2FsaG9zdDo5OTAwIiwiZXhwIjoxNjkwNTQwODg5LCJpYXQiOjE2OTA1MzcyODl9.NMZV-aERA8lTKPPsMtk_WK9ApvX-Bj-6FEIF9GP_duObzdReQkCA2ykcsPSmimw3IbJu7F4XbjZkwTCZL_vBiTaJlnQ7k3hXUzw30b3olDP2Dwc_W6Eh-CvT6s5ZxsFURCZJitfuqh82ezxHdT2lUdcDEMbELw9VpqUSBz0Dqh0tmfnFQyw4yX1be-jflT_0c8SvjyOFGRFScoxcPLq8TrrmpFvgxhT3MqowvQ9butxX6_4mTc3831FnJ6tQIihlBLH4DY11k38x3BBPzb0s9iVcEn7iczWbT0VrSr4A6g1ltATAHNChdzGTqGrhSN8JGG_PPCjJnHY_edaCmcPrUg' \\\n     --header 'Content-Type: application/json'\n   ```\n",
      "name": "SCIM"
    },
    {
      "description": "The Object Query API contains GET operations that allow you to query objects in your Zuora tenant in an efficient, consistent, and flexible manner.\n\nWith the `expand[]` and `filter[]` query parameters, you have the flexibility to retrieve related object information in a single call and define the returned response that best suits your needs.\nYou can also use the `fields[]` query parameter to define which fields are returned in the response for a given object.\nThe `sort[]` query parameter allows you to sort the results in ascending or descending order based on the specified field.\n\nThese parameters are case-insensitive matching.\n\nFor general Object Queries limitations and comprehensive introduction to these query parameters, see [Expand, filter, fields, and sort](https://developer.zuora.com/docs/guides/expand-filter-fields-sort/).\n\nFor filterable, expandable, and sortable fields on each object, refer to the Query Parameters section for each API operation.\n",
      "name": "Object Queries"
    },
    {
      "description": "Use operations to generate invoices and credit memos, collect payments for posted invoices, and generate previews of future invoice items for customer accounts.\n",
      "name": "Operations"
    },
    {
      "description": "Orders are contractual agreements between merchants and customers. \n\nYou can create multiple subscriptions and subscription amendments at once in a single order. All the operations on subscriptions in orders are done by order actions. \nYou can also create order line items to support your non-subscription based business models. \n\nZuora calculates order delta metrics when orders take place. You can retrieve order delta metrics and measure billed and unbilled amounts by order.\n\nFor more information about Orders, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_accounts%2C_subscriptions%2C_and_non-subscription_transactions/Manage_subscription_transactions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\" target=\"_blank\">Overview Of Orders</a>. \nTo learn how orders interacts with billing accounts, subscriptions, and product catalog, see [Zuora object model](https://developer.zuora.com/v1-api-reference/object-model/).\n",
      "name": "Orders"
    },
    {
      "description": "You need to have the [Orders](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders) or [Orders Harmonization](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders/Orders_Harmonization) feature enabled to use this API.\n",
      "name": "Order Actions"
    },
    {
      "description": "Use order line item to launch non-subscription and unified monetization business models in Zuora, in addition to subscription business models.\nFor more information about order line items, see <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items\" target=\"_blank\">Order Line Items</a>.\n",
      "name": "Order Line Items"
    },
    {
      "description": "Use payment gateways to pass authorization, payments, and settlement data securely to and from the merchant's website to the merchant's processor. \n\nFor more information about payment gateways, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/M_Payment_Gateways\" target=\"_blank\">Payment Gateways</a>.\n",
      "name": "Payment Gateways"
    },
    {
      "description": "Gateway reconciliation is the process of verifying that the electronic payment and refund transactions processed in Zuora match the transactions reported by the gateway. \nFor example, if Zuora processed 200 transactions through a gateway, you should see the same number of transactions on the gateway's reconciliation report, sometimes also called the settlement report.\n\nYou can complete the following Gateway Reconciliation tasks through API:\n- [Settle a payment](https://developer.zuora.com/api-references/api/operation/POST_SettlePayment/)\n- [Reject a payment](https://developer.zuora.com/api-references/api/operation/POST_RejectPayment/)\n- [Reverse a payment](https://developer.zuora.com/api-references/api/operation/POST_ReversePayment/)\n- [Reconcile a refund](https://developer.zuora.com/api-references/api/operation/POST_ReconcileRefund/)\n",
      "name": "Payment Gateway Reconciliation"
    },
    {
      "description": "A Payment Method Snapshot is a copy of the particular Payment Method used in a transaction. If the Payment Method is deleted, the Snapshot continues to retain the data used in each of the past transactions. \nAs such, the Snapshot helps with display of historical transactions, integrations to external systems, and reporting.\n",
      "name": "Payment Method Snapshots"
    },
    {
      "description": "The PaymentMethodTransactionLog object contains payment method transaction log data.\n\nYou can use the [CRUD: Retrieve a payment method transaction log](https://developer.zuora.com/v1-api-reference/api/operation/Object_GETPaymentMethodTransactionLog/) operation to export such data.\n",
      "name": "Payment Method Transaction Logs"
    },
    {
      "description": "Payment methods represents payment method details associated with a customer account.\n",
      "name": "Payment Methods"
    },
    {
      "description": "Zuora Payment Method Updater (PMU) enables merchants to automatically incorporate changes made to a customer's credit cards. For more information about Zuora PMU, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Method_Updater\" target=\"_blank\">Payment Method Updater</a>.\n",
      "name": "Payment Method Updater"
    },
    {
      "description": "Use payment runs to collect payments using electronic payment methods, for example, credit cards and ACH.\nFor more information about payment runs, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/K_Payment_Operations/CA_Payment_Runs/A_Introduction_to_Payment_Runs\" target=\"_blank\">Payment Runs</a>.\n",
      "name": "Payment Runs"
    },
    {
      "description": "Payment profiles enable payment flexibility for subscribers by allowing payment methods to be associated with specific subscriptions. \n\nTo learn more about the configuration and usage of Payment Profiles, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/Payment_Profiles\" target=\"_blank\">Payment Profiles</a>.  \n",
      "name": "Payment Profiles"
    },
    {
      "description": "Use payment schedules to split invoice or account balances into several installments and automatically process payments for the installments.\nFor more information about payment schedules, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Payment_Schedules/A_Payment_Schedules_overview\" target=\"_blank\">Payment Schedules</a>.\n",
      "name": "Payment Schedules"
    },
    {
      "description": "Use payment transaction logs to export logs of all transactions from Zuora to the Gateway for Payments.\n",
      "name": "Payment Transaction Logs"
    },
    {
      "description": "The Delayed Capture feature allows you to authorize the availability of funds for a transaction but delay the capture of funds until a later time.\n\nYou can use the [Create authorization](https://developer.zuora.com/api-references/api/operation/POST_CreateAuthorization/) operation to authorize a payment amount before capturing the payment. \nSubsequently, you can use [Create a payment](https://developer.zuora.com/api-references/api/operation/POST_CreatePayment) or [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order/) to capture the authorized funds, or use [Cancel authorization](https://developer.zuora.com/api-references/api/operation/POST_CancelAuthorization) to cancel the authorization.\n",
      "name": "Payment Authorization"
    },
    {
      "description": "Use payments to process payments, for example, automate recurring payments, manage overpayments, and create refunds.\nFor more information about payments, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/K_Payment_Operations\" target=\"_blank\">Payments</a>.\n",
      "name": "Payments"
    },
    {
      "description": "The Prepaid with Drawdown feature is a pricing model for consumption-based services, such as data storage. Under this model, customers pay upfront to receive a number of units, usually for a period of time like a month or a year. Then they consume against that prepayment balance in a use-it-or-lose-it fashion, with a possibility of topping up more units or being charged for any overage. This model strikes a balance between upfront commitment and the pure pay-as-you-go pricing models. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Prepaid_with_Drawdown\" target=\"_blank\">Prepaid with Drawdown</a>.\n",
      "name": "Prepaid with Drawdown"
    },
    {
      "description": "**Note** - The APIs in this section are legacy APIs. Zuora recommends using the newer, faster APIs for managing products and catalogs more efficiently instead.\nFor more information, see our latest <a href=\"https://developer.zuora.com/v1-api-reference/api/tag/Commerce/\"\ntarget=\"_blank\">Commerce API</a>.\n\n\nUse product charge definitions to define the attributes that can determine\nthe charge behavior, such as billing attributes, pricing attributes, taxation\nattributes, or accounting attributes.\\n\\nThe Product Charge Definition object\nis in the **Early Adopter** phase. We are actively soliciting feedback from\na small set of early adopters before releasing it as generally available. If\nyou are interested, please reach out to your CSM. \n",
      "name": "Product Charge Definitions"
    },
    {
      "description": "**Note** - The APIs in this section are legacy APIs. Zuora recommends using the newer, faster APIs for managing products and catalogs more efficiently instead.\nFor more information, see our latest <a href=\"https://developer.zuora.com/v1-api-reference/api/tag/Commerce/\"\ntarget=\"_blank\">Commerce API</a>.\n\n\nUse product rate plan definitions to reuse charges in different product\nrate plans. The Product Rate Plan Definition object is in the **Early Adopter**\nphase. We are actively soliciting feedback from a small set of early adopters\nbefore releasing it as generally available. If you are interested, please reach\nout to your CSM. \n",
      "name": "Product Rate Plan Definitions"
    },
    {
      "description": "**Note** - The APIs in this section are legacy APIs. Zuora recommends using the newer, faster APIs for managing products and catalogs more efficiently instead.\nFor more information, see our latest <a href=\"https://developer.zuora.com/v1-api-reference/api/tag/Commerce/\"\ntarget=\"_blank\">Commerce API</a>.\n\n\nTo manage product rate plan charge tiers, use the [Product Rate Plan\nCharges](https://developer.zuora.com/api-references/api/tag/Product-Rate-Plan-Charges)\noperations instead to update the corresponding product rate plan charge with all\nthe tiers.\n",
      "name": "Product Rate Plan Charge Tiers"
    },
    {
      "description": "**Note** - The APIs in this section are legacy APIs. Zuora recommends using the newer, faster APIs for managing products and catalogs more efficiently instead.\nFor more information, see our latest <a href=\"https://developer.zuora.com/v1-api-reference/api/tag/Commerce/\"\ntarget=\"_blank\">Commerce API</a>.\n\n\nA product rate plan charge represents a charge model or a set of fees\nassociated with a product rate plan, which is the part of a product that your\ncustomers subscribe to. Each product rate plan can have multiple product rate\nplan charges.\n\n\nProduct rate plan charges can be of three types: one-time fees, recurring fees,\nand usage fees. For example, the $50 activation fee for the Topaz product rate\nplan is a one-time product rate plan charge.\n",
      "name": "Product Rate Plan Charges"
    },
    {
      "description": "**Note** - The APIs in this section are legacy APIs. Zuora recommends using the newer, faster APIs for managing products and catalogs more efficiently instead.\nFor more information, see our latest <a href=\"https://developer.zuora.com/v1-api-reference/api/tag/Commerce/\"\ntarget=\"_blank\">Commerce API</a>.\n\n\nA product rate plan is the part of a product that your customers subscribe\nto. Each product can have multiple product rate plans, and each product rate plan\ncan have multiple product rate plan charges, which are fees for products and their\nproduct rate plans.\n",
      "name": "Product Rate Plans"
    },
    {
      "description": "**Note** - The APIs in this section are legacy APIs. Zuora recommends using the newer, faster APIs for managing products and catalogs more efficiently instead.\n For more information, see our latest <a href=\"https://developer.zuora.com/v1-api-reference/api/tag/Commerce/\"\n target=\"_blank\">Commerce API</a>.\n\n\n A product is an item or service that your company sells. In the subscription\n economy, a product is generally a service that your customers subscribe to rather\n than a physical item that they purchase one time. For example, customers subscribe\n to a service that provides them a car when and where they need a car rather than\n buying a car outright.\n\n\n A Product object contains all of the items in a specific product, especially product\n rate plans and product rate plan charges. Each Product object can have multiple\n rate plans, which in turn can each have multiple rate plan charges. Each rate\n plan charge can have multiple tiers. Taken together, all of these items create\n a single product.\n\n\n Customers subscribe to products that are in your product catalog. Product objects\n collectively compose your product catalog. You create your product catalog by\n creating products. As soon as you create your first product, you create your product\n catalog.\n",
      "name": "Products"
    },
    {
      "description": "A Ramp is a time container to associate with rate plan charges in your subscription. Inside the Ramp, you can further define a set of Ramp Intervals (time-based periods) where products or pricing can change. These periods are sub time containers to enable you to report out-of-the-box metrics based on Ramp Intervals.\n\n**Notes**: You must have both the Ramps feature and Orders feature enabled for your tenant to use the Ramps operations.\n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics\" target=\"_blank\">Ramps and Ramp Metrics</a>.\n",
      "name": "Ramps"
    },
    {
      "description": "A rate plan is part of a subscription or an amendment to a subscription, and it comes from a product rate plan. Like a product and its product rate plans, a subscription can have one or more rate plans. \nRate plans are sometimes called subscription rate plans. Rate plans that are part of an amendment are sometimes called amendment rate plans.\n\nRate plans represent a price or a collection of prices for a service you sell. An individual rate plan contains all charges specific to a particular subscription.\n",
      "name": "Rate Plans"
    },
    {
      "description": "Zuora allows you to issue and track refunds on payments. Similar to external payments, users can enter external refunds to track refunds that have been performed outside of Zuora Payments (for example, by issuing a check). \nIn addition, you can make electronic refunds using our supported payment gateways, which will automatically refund money to the customer.\n",
      "name": "Refunds"
    },
    {
      "description": "If you are an <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Enable_Order_to_Revenue\" target=\"_blank\">Order to Revenue</a> user, you can use the Regenerate operations to regenerate transactions objects.     \n",
      "name": "Regenerate"
    },
    {
      "description": "The REST API used in Payment Pages 2.0 are CORS (Cross-Origin Resource Sharing) enabled and therefore requires a digital signature. \n\nYou can use the [Generate an RSA signature](https://developer.zuora.com/v1-api-reference/api/operation/POST_RSASignatures/) operation to generate the required digital signature and token for a Payment Pages 2.0 form, then use the [Decrypt an RSA signature](https://developer.zuora.com/v1-api-reference/api/operation/POST_DecryptRSASignatures/) operation to decrypt the signature to validate the signature and key.\" \n",
      "name": "RSA Signatures"
    },
    {
      "description": "You can create billing document sequence sets through the REST API or the Zuora UI, allowing distinct numbering sequences for billing documents, payments, and refunds. \n\nTo create a billing document sequence set through the Zuora UI, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Billing_Settings/Prefix_and_Numbering_Configuration_for_Billing_Documents/Create_Billing_Document_Sequence_Sets\" target=\"_blank\">Create Billing Document Sequence Sets</a> for more information.\n",
      "name": "Sequence Sets"
    },
    {
      "description": "The Setting API provides a central API for managing settings in your Zuora tenant.\n\nIf you use Postman, you can import the Settings API endpoints as a collection into your Postman app and try out different requests to learn how the API works.\nYou can sign up for a free account on the [Postman website](https://identity.getpostman.com/signup) and download the app in case you do not use Postman yet.\n",
      "name": "Settings"
    },
    {
      "description": "A light-weight API to sign up customers and subscribe. \n\nYou need to have the [Orders](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders) or [Orders Harmonization](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders/Orders_Harmonization) feature enabled to use this API.\n",
      "name": "Sign Up"
    },
    {
      "description": "A subscription is a product or service that has recurring charges,\nsuch as a monthly flat fee or charges based on usage. Subscriptions can also include\none-time charges, such as activation fees. Every subscription must be associated\nwith an account. At least one active account must exist before any subscriptions\ncan be created.\n\n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Billing/Subscriptions/Subscriptions\"\ntarget=\"_blank\">Subscriptions</a>.\n",
      "name": "Subscriptions"
    },
    {
      "description": "An omnichannel subscription is a subscription originating from external and source systems, such as the Apple App Store, Google Play Store, and Roku Store. \n\nTo create, update, delete, or retrieve an omnichannel subscription, you must turn on the Omni-Channel Subscription feature. For more information, see <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/common-subscription-information/omni-channel-subscription\"\ntarget=\"_blank\">Omni-Channel Subscription</a>.  \n",
      "name": "Omnichannel Subscriptions"
    },
    {
      "description": "The change histories of single version subscriptions.\n\n**Note**: To access the change histories, you must turn on the following features:\n\n  - <a href=\"https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders\" target=\"_blank\">Orders</a>\n  \n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/Single_Version_Subscription\" target=\"_blank\">Single Version Subscription</a>\n",
      "name": "Subscription Change History"
    },
    {
      "description": "A summary journal entry is a summary of Zuora transaction amounts organized by accounting code and general ledger segments. A segment adds more reporting granularity through business dimensions, such as country or product. \n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Billing/Finance/F_Summary_Journal_Entries/A_SJE_Introduction\" target=\"_blank\">Summary Journal Entries Introduction</a>\n",
      "name": "Summary Journal Entries"
    },
    {
      "description": "The Summary Statement feature provides a comprehensive overview of billing activities for each account using HTML templates that compile data like invoices, credit memos, payments, and more.  The associated APIs help automate the creation and management of these statements. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Zuora_Billing_Reporting/Account_Summary_Statement\" target=\"_blank\">Account Summary Statements </a> for more information.\n",
      "name": "Summary Statements"
    },
    {
      "description": "The TaxationItem object is used to add a tax amount to an invoice item. In the typical use case, the tax amount that you specify in the object is calculated by <a href=\"https://knowledgecenter.zuora.com/Billing/Taxes/A_Zuora_Tax\" target=\"_blank\">Z-Tax</a> or a third-party tax engine such as <a href=\"https://knowledgecenter.zuora.com/Billing/Taxes/Direct_Avalara_Integration\" target=\"_blank\">Avalara</a> or <a href=\"https://knowledgecenter.zuora.com/Billing/Taxes/Additional_resources_on_taxes/AA_Connect_Tax_Engines\" target=\"_blank\">Connect tax engine</a>.\n\nChanges that you make with this object affect the product charges in your product catalog, but not the charges in existing subscriptions.\n",
      "name": "Taxation Items"
    },
    {
      "description": "Consumption of a billable service or resource (such as database storage space or bundles of emails sent) provides the basis for some charge models - simple usage, tiered pricing, or volume pricing. \nTo make this work, usage must be tracked in the system and usage charges must be calculated and invoiced. \nUsage is always billed in arrears - for example, you might bill customers in February for their January usage. Usage can be billed on a recurring monthly, quarterly, semi-annual, or annual basis.\n\n### Limitations for dynamic pricing usage charges  \n\nLegacy Billing Usage APIs (for example, \"Upload a usage file\" and the \"CRUD: Create/Update/Delete a   usage record\" operations) do not support usage records that are associated with a dynamic pricing   usage charge. When a usage record is associated with a product rate plan charge that is configured   for dynamic pricing, these endpoints reject the request and do not create, update, or delete the record. For dynamic pricing usage charges, usage events must be ingested through Mediation  (for example, via Meters and the Rating processor) rather than through the legacy Billing usage upload APIs. \n\nFor more information about working with usage data, see <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/usage-billing/usage-billing---prepayment-credits-and-commitment\" target=\"_blank\">Usage</a>.\n",
      "name": "Usage"
    },
    {
      "description": "A workflow is a sequence of tasks that are performed based on predefined logic. A workflow improves efficiency and reduces errors by automating a series of complex tasks that otherwise need to be performed manually and repetitively.\n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Central_Platform/Workflow\" target=\"_blank\">Workflow</a>.\n",
      "name": "Workflows"
    },
    {
      "description": "**Note:** You can only use the operations in this section if you have the Billing - Revenue Integration feature enabled. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> for more information.\nThe APIs in this section are legacy APIs. Zuora recommends using the newer, faster APIs for managing products and catalogs more efficiently instead. For more information, see our latest <a href=\"https://developer.zuora.com/v1-api-reference/api/tag/Commerce/\" target=\"_blank\">Commerce API</a>.\n",
      "name": "Zuora Revenue Integration"
    }
  ],
  "paths": {
    "/test-environments": {
      "get": {
        "tags": [
          "Test Environments"
        ],
        "summary": "List all test environments",
        "operationId": "getAllTestEnvironments",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved a list of Test Environment responses",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestEnvironmentArrayResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {}
          },
          "500": {
            "description": "Internal Error",
            "content": {}
          }
        },
        "description": "Use this operation to retrieves a list of all Test Environments. \nIt returns an ArrayResponse containing TestEnvironmentResponse objects, \nrepresenting the available Test Environments in the system. \n\n### User Access Permission\n\nYou must be assigned the **Refresh Central Sandbox** permission to run \nthis operation.\n"
      }
    },
    "/test-environments/{id}": {
      "get": {
        "tags": [
          "Test Environments"
        ],
        "summary": "Retrieve a test environment response",
        "operationId": "getTestEnvironment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "description": "Test Environment ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved Test Environment response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestEnvironmentResponse"
                }
              }
            }
          },
          "404": {
            "description": "The resource you were trying to reach is not found",
            "content": {}
          },
          "500": {
            "description": "Internal Error",
            "content": {}
          }
        },
        "description": "Use this operation to retrieves a specific Test Environment by its unique identifier. \nIt returns a TestEnvironmentResponse object if the environment is found. If the specified \nTest Environment does not exist, it returns a 404 error.\n\n### User Access Permission\n\nYou must be assigned the **Refresh Central Sandbox** permission to run \nthis operation.\n"
      }
    },
    "/test-environments/{id}/jobs": {
      "post": {
        "tags": [
          "Test Environment Jobs"
        ],
        "summary": "Create a test environment job",
        "operationId": "createTestEnvironmentJob",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "description": "Test Environment ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "jobRequest",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobResponse"
                }
              }
            }
          },
          "201": {
            "description": "Successfully created a new Test Environment job",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Only one refresh can be performed during a set period",
            "content": {}
          },
          "500": {
            "description": "Internal Error",
            "content": {}
          }
        },
        "x-codegen-request-body-name": "jobRequest",
        "description": "Use this operation to create a new job for a specific Test Environment. \nIt handles HTTP POST requests to the /test-environments/{id}/jobs endpoint, \naccepting a JobRequest object in the request body. Upon successful creation, \nit returns a JobResponse object and sets the Location header to the polling \nURL for the created job.\n\n### User Access Permission\n\nYou must be assigned the **Refresh Central Sandbox** permission to run this operation.\n"
      },
      "get": {
        "tags": [
          "Test Environment Jobs"
        ],
        "summary": "List all jobs of a test environment",
        "operationId": "getAllJobsOfTestEnvironment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "description": "Test Environment ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved a list of Test Environment job responses",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobArrayResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {}
          }
        },
        "description": "Use this operation to retrieve a list of job responses associated \nwith a specific Test Environment. It handles HTTP GET requests to \nthe /test-environments/{id}/jobs endpoint and returns an ArrayResponse \ncontaining JobResponse objects. This method is documented in Swagger, \nincluding possible responses for successful retrieval and bad requests.\n\n### User Access Permission\n\nYou must be assigned the **Refresh Central Sandbox** \npermission to run this operation.\n"
      }
    },
    "/test-environments/{id}/jobs/{jobId}": {
      "get": {
        "tags": [
          "Test Environment Jobs"
        ],
        "summary": "Retrieve a job of a test environment",
        "operationId": "getJobOfTestEnvironment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "description": "Test Environment ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Test Environment Job ID",
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved a Test Environment job response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobResponse"
                }
              }
            }
          },
          "404": {
            "description": "The resource you were trying to reach was not found",
            "content": {}
          },
          "500": {
            "description": "Internal Error",
            "content": {}
          }
        },
        "description": "Use this operation to retrieve a specific job associated \nwith a Test Environment by its unique job ID. It handles \nHTTP GET requests to the /test-environments/{id}/jobs/{jobId} \nendpoint and returns a JobResponse object if the job is found. \nIf the specified job does not exist, it returns a 404 error.\n\n### User Access Permission\n\nYou must be assigned the **Refresh Central Sandbox** permission to run this operation.\n"
      }
    },
    "/test-environments/{id}/jobs/{jobId}/actions": {
      "post": {
        "tags": [
          "Test Environment Jobs"
        ],
        "summary": "Perform an action on a test environment job",
        "operationId": "performActionOfJob",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "description": "Test Environment ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Test Environment Job ID",
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "jobActionRequest",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobActionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successfully submitted Test Environment job action",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {}
          },
          "404": {
            "description": "The resource you were trying to reach is not found",
            "content": {}
          },
          "500": {
            "description": "Internal Error",
            "content": {}
          }
        },
        "x-codegen-request-body-name": "jobActionRequest",
        "description": "Use this operation to perform a specified action \non a Test Environment job. It handles HTTP POST \nrequests to the /test-environments/{id}/jobs/{jobId}/actions \nendpoint, accepting a JobActionRequest object in the \nrequest body. Upon successful execution, it returns a \nJobResponse object reflecting the updated job state.\n\n### User Access Permission\n\nYou must be assigned the **Refresh Central Sandbox** permission to run this operation.\n"
      }
    },
    "/test-environments/{id}/notifications": {
      "post": {
        "tags": [
          "Test Environment Notifications"
        ],
        "summary": "Create a test environment notification",
        "operationId": "createTestEnvironmentNotification",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "description": "Test Environment ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "notificationRequest",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestEnvironmentNotificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestEnvironmentNotificationResponse"
                }
              }
            }
          },
          "201": {
            "description": "Successfully created a new Test Environment notification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestEnvironmentNotificationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {}
          }
        },
        "x-codegen-request-body-name": "notificationRequest",
        "description": "Use this operation to create a new notification \nfor a specific Test Environment. It handles HTTP \nPOST requests to the /test-environments/{id}/notifications \nendpoint, accepting a TestEnvironmentNotificationRequest \nobject in the request body. Upon successful creation, \nit returns a TestEnvironmentNotificationResponse object \nand sets the Location header to the URL of the created \nnotification.\n\n### User Access Permission\n\nYou must be assigned the **Refresh Central Sandbox** permission to run this operation.\n"
      },
      "get": {
        "tags": [
          "Test Environment Notifications"
        ],
        "summary": "List all email notifications of a test environment",
        "operationId": "getAllEmailNotificationOfTestEnv",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "description": "Test Environment ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully fetched all notifications",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestEnvironmentNotificationArrayResponse"
                }
              }
            }
          },
          "404": {
            "description": "The resource you were trying to reach was not found",
            "content": {}
          },
          "500": {
            "description": "Internal Error",
            "content": {}
          }
        },
        "description": "Use this operation to retrieve all notifications associated \nwith a specific Test Environment. It handles HTTP GET \nrequests to the /test-environments/{id}/notifications \nendpoint and returns an ArrayResponse containing \nTestEnvironmentNotificationResponse objects. \n\n### User Access Permission\n\nYou must be assigned the **Refresh Central Sandbox** permission to run this operation.\n"
      }
    },
    "/test-environments/{id}/notifications/{notificationId}": {
      "get": {
        "tags": [
          "Test Environment Notifications"
        ],
        "summary": "Retrieve a notification response of a test environment",
        "operationId": "getTestEnvironmentNotification",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "description": "Test Environment ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Test Environment Notification ID",
            "in": "path",
            "name": "notificationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved a Test Environment notification response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestEnvironmentNotificationResponse"
                }
              }
            }
          },
          "404": {
            "description": "The resource you were trying to reach was not found",
            "content": {}
          },
          "500": {
            "description": "Internal Error",
            "content": {}
          }
        },
        "description": "Use this operation to retrieve a specific notification associated \nwith a Test Environment by its unique notification ID. It handles \nHTTP GET requests to the /test-environments/{id}/notifications/{notificationId} \nendpoint and returns a TestEnvironmentNotificationResponse object \nif the notification is found. If the specified notification does \nnot exist, it returns a 404 error.\n\n### User Access Permission\n\nYou must be assigned the **Refresh Central Sandbox** permission to run this operation.\n"
      },
      "patch": {
        "tags": [
          "Test Environment Notifications"
        ],
        "summary": "Update a test environment notification",
        "operationId": "updateTestEnvironmentNotification",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "description": "Test Environment ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Test Environment Notification ID",
            "in": "path",
            "name": "notificationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "notificationRequest",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestEnvironmentNotificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successfully updated a Test Environment notification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestEnvironmentNotificationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "500": {
            "description": "Internal Error",
            "content": {}
          }
        },
        "x-codegen-request-body-name": "notificationRequest",
        "description": "Use this operation to update an existing notification \nfor a specific Test Environment. It handles HTTP PATCH \nrequests to the /test-environments/{id}/notifications/{notificationId} \nendpoint, accepting a TestEnvironmentNotificationRequest \nobject in the request body. Upon successful update, it \nreturns a TestEnvironmentNotificationResponse object.\n\n### User Access Permission\n\nYou must be assigned the **Refresh Central Sandbox** permission to run this operation.\n"
      },
      "delete": {
        "tags": [
          "Test Environment Notifications"
        ],
        "summary": "Delete a notification of a test environment",
        "operationId": "deleteTestEnvironmentNotification",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "description": "Test Environment ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Test Environment Notification ID",
            "in": "path",
            "name": "notificationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully deleted a notification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestEnvironmentNotificationResponse"
                }
              }
            }
          },
          "404": {
            "description": "The resource you were trying to reach is not found",
            "content": {}
          },
          "500": {
            "description": "Internal Error",
            "content": {}
          }
        },
        "description": "Use this operation to delete a specific notification associated \nwith a Test Environment. It handles HTTP DELETE requests to the \n/test-environments/{id}/notifications/{notificationId} endpoint \nand returns a TestEnvironmentNotificationResponse object for the \ndeleted notification. If the specified notification does not exist, \nit returns a 404 error.\n\n### User Access Permission\n\nYou must be assigned the **Refresh Central Sandbox** permission to run this operation.\n"
      }
    },
    "/oauth/token": {
      "post": {
        "security": [],
        "description": "Creates a bearer token that enables an OAuth client to authenticate with the Zuora REST API. The OAuth client must have been created using the Zuora UI. See [Authentication](https://developer.zuora.com/rest-api/general-concepts/authentication/) for more information.\n\n**Note:** When using this operation, do not set any authentication headers such as `Authorization`, `apiAccessKeyId`, or `apiSecretAccessKey`.\n\nYou should not use this operation to generate a large number of bearer tokens in a short period of time; each token should be used until it expires. If you receive a 429 Too Many Requests response when using this operation, reduce the frequency of requests. This endpoint is rate limited by IP address.\n\nFor the rate limit information of authentication, see [Rate and concurrent request limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/).\n",
        "operationId": "createToken",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "name": "Zuora-Entity-Ids",
            "in": "header",
            "required": false,
            "description": "An entity ID if you have <a href=\"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity\" target=\"_blank\">Multi-entity</a> enabled. \n\nThe value must be a 36-character UUID that contains hyphens(`-`). \nIf your entity ID is not a valid UUID, convert it to a valid UUID before specifying this parameter.\n",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "11e643f4-a3ee-8bad-b061-0025904c756d"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "client_id": {
                    "description": "The Client ID of the OAuth client.\n",
                    "maxLength": 36,
                    "minLength": 36,
                    "type": "string"
                  },
                  "client_secret": {
                    "description": "The Client Secret that was displayed when the OAuth client was created.\n",
                    "maxLength": 42,
                    "type": "string"
                  },
                  "grant_type": {
                    "description": "The OAuth grant type that will be used to generate the token. The value of this parameter must be `client_credentials`.\n",
                    "enum": [
                      "client_credentials"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "client_id",
                  "client_secret",
                  "grant_type"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "access_token": "c652cbc0ea384b9f81856a93a2a74538",
                      "expires_in": 3599,
                      "jti": "c652cbc0ea384b9f81856a93a2a74539",
                      "scope": "user.7c4d5433dc234c369a01b9719ecd059f entity.1a2b7a37-3e7d-4cb3-b0e2-883de9e766cc entity.c92ed977-510c-4c48-9b51-8d5e848671e9 service.echo.read tenant.19",
                      "token_type": "bearer"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/tokenResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "X-RateLimit-Limit-minute": {
                "description": "The rate limit of this operation, in requests per minute. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining-minute": {
                "description": "The number of requests that you may make in the next minute. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "integer"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "headers": {
              "X-RateLimit-Limit-minute": {
                "description": "The rate limit of this operation, in requests per minute. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining-minute": {
                "description": "The number of requests that you may make in the next minute. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "integer"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an OAuth token",
        "tags": [
          "OAuth"
        ],
        "x-code-samples": [
          {
            "label": "Curl",
            "lang": "curl",
            "source": "curl -X POST -H \"Content-Type: application/x-www-form-urlencoded\" -d \"client_id=b64e42ba-7e1a-4bc6-9146-5e1b420306b5\" --data-urlencode \"client_secret=dOFENLWU193EEoEsWjPZrcjLKVr5OrN1HC9Kqg\" -d \"grant_type=client_credentials\" \"https://rest.zuora.com/oauth/token\"\n"
          }
        ]
      }
    },
    "/v1/object/product": {
      "post": {
        "description": "",
        "operationId": "Object_POSTProduct",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_rejectUnknownFields"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyCreateProduct"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Id": "2c93808457d787030157e03246ae5129",
                      "Success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyCreateOrModifyResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Errors": [
                        {
                          "Code": "INVALID_VALUE",
                          "Message": "The account number 123xProxy is invalid."
                        }
                      ],
                      "Success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Create a product",
        "tags": [
          "Products"
        ]
      }
    },
    "/v1/object/product/{id}": {
      "get": {
        "description": "Retrieve a specific product.",
        "operationId": "Object_GETProduct",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version"
          },
          {
            "description": "Object fields to return",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "CreatedById": "2c93808457d787030157e02e62af2097",
                      "CreatedDate": "2016-10-20T05:42:05.000+02:00",
                      "Description": "Create product via API_new",
                      "EffectiveEndDate": "2066-10-20",
                      "EffectiveStartDate": "1966-10-20",
                      "Id": "2c93808457d787030157e02e7be22210",
                      "Name": "P_1476934925293_new",
                      "SKU": "API-SKU1476934925293",
                      "UpdatedById": "2c93808457d787030157e02e62af2097",
                      "UpdatedDate": "2016-10-20T05:42:05.000+02:00"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyGetProduct"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "done": true,
                      "records": {},
                      "size": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyNoDataResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Retrieve a product",
        "tags": [
          "Products"
        ]
      },
      "put": {
        "description": "Updates a Product object.",
        "operationId": "Object_PUTProduct",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_rejectUnknownFields"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version"
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyModifyProduct"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Id": "2c93808457d787030157e02e7be22210",
                      "Success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyCreateOrModifyResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Update a product",
        "tags": [
          "Products"
        ]
      },
      "delete": {
        "description": "Deletes a specific product.",
        "operationId": "Object_DELETEProduct",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "2c93808457d787030157e02e7a22220e",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyDeleteResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Delete a product",
        "tags": [
          "Products"
        ]
      }
    },
    "/v1/catalog/products": {
      "get": {
        "description": "Retrieves the entire product catalog, including all products, features, and their corresponding product rate plans, charges. Products are returned in reverse chronological order on the `UpdatedDate` field. \n\nFor each product, this operation returns a maximum of 300 product rate plans in the response. Across the returned product rate plans, up to 300 product rate plan charges can be returned for each product. \n",
        "operationId": "GET_Catalog",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize_catalog"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "products": [
                        {
                          "category": "Base Products",
                          "description": "",
                          "effectiveEndDate": "2020-01-01",
                          "effectiveStartDate": "2017-01-01",
                          "id": "8a8082c45aa81b51015ad5a2d07d0e89",
                          "name": "ABC",
                          "productNumber": "PC-00000011",
                          "productRatePlans": "https://rest.zuora.com/v1/rateplan/40289f466463d683016463ef8b7301a0/productRatePlan",
                          "sku": "SKU-00000987"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCatalogType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all products",
        "tags": [
          "Catalog"
        ]
      }
    },
    "/v1/catalog/products/{product-key}": {
      "get": {
        "description": "Retrieves detailed information about a specific product, including information about its product rate plans and charges. \n\nThis operation returns a maximum of 300 product rate plans and 300 product rate plan charges across all product rate plans in the response.\n",
        "operationId": "GET_Product",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID, SKU, or product number of the product that you want to retrieve. For example, 8a808255575bdae4015774e9602e16fe, SKU-00000987, or PC-00000006.\n",
            "in": "path",
            "name": "product-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "category": "Base Products",
                      "description": "",
                      "effectiveEndDate": "2020-01-01",
                      "effectiveStartDate": "2017-01-01",
                      "id": "8a8082c45aa81b51015ad5a2d07d0e89",
                      "name": "ABC",
                      "productNumber": "PC-00000006",
                      "productRatePlans": "https://rest.zuora.com/v1/rateplan/40289f466463d683016463ef8b7301a0/productRatePlan",
                      "sku": "SKU-00000987",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETProductType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a product",
        "tags": [
          "Catalog"
        ]
      }
    },
    "/v1/catalog-groups": {
      "post": {
        "description": "**Note**: This operation is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at [Zuora Global Support](http://support.zuora.com/).\n\nCreates a catalog group which groups a list of product rate plans.\n",
        "operationId": "POST_CreateCatalogGroup",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTCatalogGroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "catalogGroupNumber": "CG-00000001",
                      "description": "some description",
                      "id": "4028e5ab7f1b600c017f1b7a5e8901d2",
                      "name": "test",
                      "productRatePlans": [
                        {
                          "description": null,
                          "effectiveEndDate": "2023-02-21",
                          "effectiveStartDate": "2022-02-21",
                          "grade": 1,
                          "id": "4028e5ab7f1b600c017f1b787d5d01cf",
                          "name": "222",
                          "status": "Active"
                        }
                      ],
                      "type": "Grading"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CatalogGroupResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a catalog group",
        "tags": [
          "Catalog Groups"
        ]
      },
      "get": {
        "description": "**Note**: This operation is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at [Zuora Global Support](http://support.zuora.com/).\n\nRetrieves basic information about all catalog groups.\n",
        "operationId": "GET_ListAllCatalogGroups",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "catalogGroups": [
                        {
                          "catalogGroupNumber": "CG-00000001",
                          "description": "some description",
                          "id": "4028e5ab7f1b600c017f1b7a5e8901d2",
                          "name": "test",
                          "productRatePlans": [
                            {
                              "description": null,
                              "effectiveEndDate": "2023-02-21",
                              "effectiveStartDate": "2022-02-21",
                              "grade": 1,
                              "id": "4028e5ab7f1b600c017f1b787d5d01cf",
                              "name": "222",
                              "status": "Active"
                            }
                          ],
                          "type": "Grading"
                        }
                      ],
                      "nextPage": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ListAllCatalogGroupsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all catalog groups",
        "tags": [
          "Catalog Groups"
        ]
      }
    },
    "/v1/catalog-groups/{catalog-group-key}": {
      "get": {
        "description": "**Note**: This operation is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at [Zuora Global Support](http://support.zuora.com/).\n\nRetrieves basic information about a catalog group.\n",
        "operationId": "GET_RetrieveCatalogGroup",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique number or ID of the catalog group to be retrieved.\n",
            "in": "path",
            "name": "catalog-group-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "catalogGroupNumber": "CG-00000001",
                      "description": "some description",
                      "id": "4028e5ab7f1b600c017f1b7a5e8901d2",
                      "name": "test",
                      "productRatePlans": [
                        {
                          "description": null,
                          "effectiveEndDate": "2023-02-21",
                          "effectiveStartDate": "2022-02-21",
                          "grade": 1,
                          "id": "4028e5ab7f1b600c017f1b787d5d01cf",
                          "name": "222",
                          "status": "Active"
                        }
                      ],
                      "type": "Grading"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CatalogGroupResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a catalog group",
        "tags": [
          "Catalog Groups"
        ]
      },
      "put": {
        "description": "**Note**: This operation is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at [Zuora Global Support](http://support.zuora.com/).\n\nUpdates a catalog group by its unique number or ID.\n\n### Notes\n- It is best practice to only specify the fields that you want to change in the request body.\n- If you specify an empty value for a field in the request body, the corresponding field in the catalog group is emptied.\n- The catalog group type cannot be changed.\n",
        "operationId": "PUT_UpdateCatalogGroup",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique number or ID of the catalog group to be updated. \n",
            "in": "path",
            "name": "catalog-group-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTCatalogGroup"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "catalogGroupNumber": "CG-00000001",
                      "description": "some description",
                      "id": "4028e5ab7f1b600c017f1b7a5e8901d2",
                      "name": "test",
                      "productRatePlans": [
                        {
                          "description": null,
                          "effectiveEndDate": "2023-02-21",
                          "effectiveStartDate": "2022-02-21",
                          "grade": 1,
                          "id": "4028e5ab7f1b600c017f1b787d5d01cf",
                          "name": "222",
                          "status": "Active"
                        }
                      ],
                      "type": "Grading"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CatalogGroupResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a catalog group",
        "tags": [
          "Catalog Groups"
        ]
      },
      "delete": {
        "description": "**Note**: This operation is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at [Zuora Global Support](http://support.zuora.com/).\n\nDeletes a catalog group.\n",
        "operationId": "DELETE_CatalogGroup",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique number or ID of the catalog group to be deleted.\n",
            "in": "path",
            "name": "catalog-group-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": "true"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a catalog group",
        "tags": [
          "Catalog Groups"
        ]
      }
    },
    "/v1/products/{product-key}/product-rate-plans": {
      "get": {
        "description": "Retrieves information about all product rate plans of a specific product.\n",
        "operationId": "GET_ProductRatePlans",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The unique ID or SKU of a product. For example, 2c92c0f96487e16a016487f663c71a61 or SKU-00000987.\n",
            "in": "path",
            "name": "product-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Specifies whether to include the product charge definitions of this rate plan in the response.\n\n**Note**: This parameter is applicable only if the Attribute Based Pricing feature is enabled. To access this feature, submit a request at <a href=\"https://support.zuora.com\" target=\"_blank\">Zuora Global Support</a>.\n",
            "in": "query",
            "name": "show-charge-definitions",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "productRatePlans": [
                        {
                          "description": "",
                          "effectiveEndDate": "2020-07-31",
                          "effectiveStartDate": "2016-07-01",
                          "grade": 3,
                          "id": "40289f466464127601646473d6f7000f",
                          "name": "New Rate Plan",
                          "productRatePlanCharges": [
                            {
                              "applyDiscountTo": null,
                              "billingDay": "DefaultFromCustomer",
                              "billingPeriod": "Month",
                              "billingPeriodAlignment": "AlignToCharge",
                              "billingTiming": "IN_ADVANCE",
                              "defaultQuantity": null,
                              "description": "",
                              "discountClass": null,
                              "discountLevel": null,
                              "endDateCondition": "Subscription_End",
                              "financeInformation": {
                                "deferredRevenueAccountingCode": "",
                                "deferredRevenueAccountingCodeType": null,
                                "recognizedRevenueAccountingCode": "",
                                "recognizedRevenueAccountingCodeType": null
                              },
                              "id": "40289f4664641276016464740dd0001c",
                              "listPriceBase": "Per_Billing_Period",
                              "model": "FlatFee",
                              "name": "New Component",
                              "numberOfPeriods": null,
                              "overageCalculationOption": null,
                              "overageUnusedUnitsCreditOption": null,
                              "priceChangeOption": null,
                              "priceIncreasePercentage": null,
                              "pricing": [
                                {
                                  "currency": "USD",
                                  "discountAmount": null,
                                  "discountPercentage": null,
                                  "includedUnits": null,
                                  "overagePrice": null,
                                  "price": 100,
                                  "tiers": null
                                }
                              ],
                              "pricingSummary": [
                                "USD100"
                              ],
                              "productChargeDefinitions": "https://rest.zuora.com/v1/product-charge-definitions?charge=8a80808e8aaf3b0a018aaf3f2beb022b&rateplan=8a80808e8aaf3b0a018aaf3ed4cf021e",
                              "productDiscountApplyDetails": [],
                              "productRatePlanChargeNumber": "PRPC-00000001",
                              "revRecCode": "",
                              "revRecTriggerCondition": "ContractEffectiveDate",
                              "revenueRecognitionRuleName": "Recognize upon invoicing",
                              "smoothingModel": null,
                              "specificBillingPeriod": null,
                              "specificListPriceBase": null,
                              "taxCode": "",
                              "taxMode": null,
                              "taxable": false,
                              "triggerEvent": "ContractEffective",
                              "type": "Recurring",
                              "unusedIncludedUnitPrice": null,
                              "uom": null,
                              "upToPeriods": null,
                              "upToPeriodsType": null,
                              "usageRecordRatingOption": null,
                              "useDiscountSpecificAccountingCode": null,
                              "useTenantDefaultForPriceChange": null
                            }
                          ],
                          "productRatePlanNumber": "PRP-00000001",
                          "status": "Active"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETProductRatePlansResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all product rate plans of a product",
        "tags": [
          "Product Rate Plans"
        ]
      }
    },
    "/v1/product-rate-plans/{id}": {
      "get": {
        "description": "Retrieves a product rate plan by its ID.\n",
        "operationId": "GET_ProductRatePlan",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID, external ID, or the natural key of the product rate plan to be retrieved. For example, `402888e67f8b3a68017f8bbb2a06062d`, `Apple0001`, or `PRP-00000008`.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "description": "",
                      "effectiveEndDate": "2032-02-01",
                      "effectiveStartDate": "2012-02-01",
                      "externalIdSourceSystem": "apple",
                      "externallyManagedPlanIds": [
                        "Apple0001",
                        "Apple0002",
                        "Google0003"
                      ],
                      "grade": 3,
                      "id": "402888e67f8b3a68017f8bbb2a06062d",
                      "name": "New Rate Plan Change",
                      "productRatePlanNumber": "PRP-00000008",
                      "status": "Active",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETProductRatePlanWithExternalIdResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a product rate plan by ID",
        "tags": [
          "Product Rate Plans"
        ]
      }
    },
    "/v1/product-rate-plans/external-id/{id}": {
      "get": {
        "description": "Retrieves information about one or multiple product rate plans by external ID.\n",
        "operationId": "GET_ProductRatePlansByExternalID",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The external ID of the product rate plan to be retrieved. For example, `Apple0001`.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "productRatePlans": [
                        {
                          "id": "2c989020823f450c01823fef40421eb6",
                          "status": "Active",
                          "name": "My rate plan - Monthly Basic",
                          "description": "",
                          "effectiveStartDate": "2024-01-01",
                          "effectiveEndDate": "2026-01-01",
                          "externalIdSourceSystem": "apple",
                          "externallyManagedPlanIds": [
                            "zuora-us-monthly-basic"
                          ],
                          "productRatePlanNumber": 1001
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETProductRatePlanWithExternalIdMultiResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List product rate plans by external ID",
        "tags": [
          "Product Rate Plans"
        ]
      }
    },
    "/v1/object/product-rate-plan": {
      "post": {
        "description": "Retrieves a product rate plan.\n",
        "operationId": "Object_POSTProductRatePlan",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_rejectUnknownFields"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyCreateProductRatePlan"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Id": "2c93808457d787030157e0324735512b",
                      "Success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyCreateOrModifyResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Errors": [
                        {
                          "Code": "INVALID_VALUE",
                          "Message": "The account number 123xProxy is invalid."
                        }
                      ],
                      "Success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Create a product rate plan",
        "tags": [
          "Product Rate Plans"
        ]
      }
    },
    "/v1/object/product-rate-plan/{id}": {
      "get": {
        "description": "Retrieves a product rate plan.\n",
        "operationId": "Object_GETProductRatePlan",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version"
          },
          {
            "description": "Object fields to return",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "CreatedById": "2c93808457d787030157e02d84c116d5",
                      "CreatedDate": "2016-10-20T05:41:09.000+02:00",
                      "Description": "Test create product rateplan via API",
                      "EffectiveEndDate": "2066-10-20",
                      "EffectiveStartDate": "1966-10-20",
                      "Grade": 3,
                      "Id": "2c93808457d787030157e02da0d91852",
                      "Name": "ProductRatePlan1476934869186_new",
                      "ProductId": "2c93808457d787030157e02da0231850",
                      "UpdatedById": "2c93808457d787030157e02d84c116d5",
                      "UpdatedDate": "2016-10-20T05:41:09.000+02:00"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyGetProductRatePlan"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "done": true,
                      "records": {},
                      "size": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyNoDataResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Retrieve a product rate plan",
        "tags": [
          "Product Rate Plans"
        ]
      },
      "put": {
        "description": "Updates a product rate plan.\n",
        "operationId": "Object_PUTProductRatePlan",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_rejectUnknownFields"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version"
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyModifyProductRatePlan"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Id": "2c93808457d787030157e02da0d91852",
                      "Success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyCreateOrModifyResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Update a product rate plan",
        "tags": [
          "Product Rate Plans"
        ]
      },
      "delete": {
        "description": "Deletes a product rate plan.\n",
        "operationId": "Object_DELETEProductRatePlan",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "2c93808457d787030157e02d9dde184f",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyDeleteResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Delete a product rate plan",
        "tags": [
          "Product Rate Plans"
        ]
      }
    },
    "/v1/product-rateplan-definitions": {
      "post": {
        "description": "Creates a product rate plan definition to use a charge in a product rate plan.\n\nIn the request, you must specify either the unique ID or number of both the charge and the product rate plan to add the specified charge to a specific rate plan.\n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing) feature to be enabled, which is in the **Early Adopter** phase. \n",
        "operationId": "POST_CreateProductRatePlanDefinition",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTRatePlanDefinitionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "2c9890f78aba5c16018ababa00120019",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTRatePlanDefinitionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a product rate plan definition",
        "tags": [
          "Product Rate Plan Definitions"
        ]
      },
      "get": {
        "description": "Retrieves basic information about the product rate plan definitions for a product rate plan. \n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing) feature to be enabled, which is in the **Early Adopter** phase. \n",
        "operationId": "GET_RetrieveProductRatePlanDefinitions",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique number or ID of the charge for which the product rate plan definitions are to be retrieved.\n",
            "in": "query",
            "name": "charge",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique number or ID of the product rate plan for which the product rate plan definitions are to be retrieved.\n",
            "in": "query",
            "name": "rateplan",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "productRatePlanDefinitions": [
                        {
                          "id": "2c9890f78b212d76018b218993c9005c",
                          "productRatePlanChargeId": "2c9890f78aba5c16018ababa00120019",
                          "productRatePlanChargeName": "New Component",
                          "productRatePlanChargeNumber": "PRPC-NEW-00000175",
                          "productRatePlanId": "2c9890678b1ca909018b1caea5c30000",
                          "productRatePlanName": "New Rate Plan2",
                          "productRatePlanNumber": "PRP-NEW-00000353"
                        },
                        {
                          "id": "2c9890f78b212d76018b21742683005a",
                          "productRatePlanChargeId": "2c9890f78b212d76018b2174263c004a",
                          "productRatePlanChargeName": "API_Usage_Tiered-multi",
                          "productRatePlanChargeNumber": "PRPC-NEW-00000246",
                          "productRatePlanId": "2c9890678b1ca909018b1caea5c30000",
                          "productRatePlanName": "New Rate Plan2",
                          "productRatePlanNumber": "PRP-NEW-00000353"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETProductRatePlanDefinitionsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List product rate plan definitions",
        "tags": [
          "Product Rate Plan Definitions"
        ]
      }
    },
    "/v1/product-rateplan-definitions/{product-rateplan-definition-key}": {
      "get": {
        "description": "Retrieves basic information about a product rate plan definition.\n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing) feature to be enabled, which is in the **Early Adopter** phase. \n",
        "operationId": "GET_RetrieveProductRatePlanDefinition",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique ID of the product rate plan definition to be retrieved.\n",
            "in": "path",
            "name": "product-rateplan-definition-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "2c9890f78b212d76018b21937228005d",
                      "productRatePlanChargeId": "2c9890e489f227bd0189f22f3482001f",
                      "productRatePlanChargeName": "Per Unit",
                      "productRatePlanChargeNumber": null,
                      "productRatePlanId": "2c9890678b1ca909018b1caea5c30000",
                      "productRatePlanName": "New Rate Plan2",
                      "productRatePlanNumber": "PRP-NEW-00000353",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETProductRatePlanDefinitionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a product rate plan definition",
        "tags": [
          "Product Rate Plan Definitions"
        ]
      },
      "delete": {
        "description": "Deletes a product rate plan definition.\n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing) feature to be enabled, which is in the **Early Adopter** phase. \n",
        "operationId": "DELETE_ProductRatePlanDefnition",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique ID of the product rate plan definition to be deleted.\n",
            "in": "path",
            "name": "product-rateplan-definition-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a product rate plan definition",
        "tags": [
          "Product Rate Plan Definitions"
        ]
      }
    },
    "/v1/product-rate-plan-charges/{product-rate-plan-charge-key}": {
      "get": {
        "description": "Retrieves basic information about a product rate plan charge.\n",
        "operationId": "GET_RetrieveProductRatePlanCharge",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique number or ID of the product rate plan charge to be retrieved.\n",
            "in": "path",
            "name": "product-rate-plan-charge-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Specifies whether to include the product charge definitions of this charge in the response.\n\n**Note**: This parameter is applicable only if the Attribute-based Pricing feature is enabled. The Attribute-based Pricing feature in the **Early Adopter** phase. \nWe are actively soliciting feedback from a small set of early adopters. If you are interested, please reach out to your CSM.\n",
            "in": "query",
            "name": "show-charge-definitions",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "edca018c566983fa11f6d38381b10000",
                      "name": "Attribute based pricing charge with formula",
                      "type": "Recurring",
                      "model": "FlatFee",
                      "uom": null,
                      "pricingSummary": [
                        "USD60"
                      ],
                      "pricing": [
                        {
                          "currency": "USD",
                          "price": 60,
                          "tiers": null,
                          "includedUnits": null,
                          "overagePrice": null,
                          "discountPercentage": null,
                          "discountAmount": null
                        }
                      ],
                      "defaultQuantity": null,
                      "applyDiscountTo": null,
                      "discountLevel": null,
                      "discountClass": null,
                      "applyToBillingPeriodPartially": false,
                      "productDiscountApplyDetails": [],
                      "endDateCondition": "Subscription_End",
                      "upToPeriods": null,
                      "upToPeriodsType": null,
                      "billingDay": "DefaultFromCustomer",
                      "listPriceBase": "Per_Billing_Period",
                      "specificListPriceBase": null,
                      "billingTiming": "IN_ADVANCE",
                      "ratingGroup": null,
                      "billingPeriod": "Month",
                      "billingPeriodAlignment": "AlignToCharge",
                      "specificBillingPeriod": null,
                      "smoothingModel": null,
                      "numberOfPeriods": null,
                      "overageCalculationOption": null,
                      "overageUnusedUnitsCreditOption": null,
                      "unusedIncludedUnitPrice": null,
                      "usageRecordRatingOption": null,
                      "priceChangeOption": null,
                      "priceIncreasePercentage": null,
                      "useTenantDefaultForPriceChange": true,
                      "taxable": false,
                      "taxCode": "",
                      "taxMode": null,
                      "isPrepaid": false,
                      "prepaidOperationType": null,
                      "prepaidUom": null,
                      "prepaidQuantity": null,
                      "prepaidTotalQuantity": null,
                      "validityPeriodType": "SUBSCRIPTION_TERM",
                      "drawdownRate": null,
                      "drawdownUom": null,
                      "creditOption": "TimeBased",
                      "isRollover": false,
                      "rolloverPeriods": 0,
                      "rolloverPeriodLength": 0,
                      "rolloverApply": "ApplyLast",
                      "triggerEvent": "ContractEffective",
                      "description": "",
                      "revRecCode": null,
                      "revRecTriggerCondition": null,
                      "revenueRecognitionRuleName": "Recognize upon invoicing",
                      "useDiscountSpecificAccountingCode": null,
                      "excludeItemBookingFromRevenueAccounting": false,
                      "excludeItemBillingFromRevenueAccounting": false,
                      "financeInformation": {
                        "deferredRevenueAccountingCode": "",
                        "deferredRevenueAccountingCodeType": null,
                        "recognizedRevenueAccountingCode": "",
                        "recognizedRevenueAccountingCodeType": null,
                        "accountsReceivableAccountingCode": "Accounts Receivable",
                        "accountsReceivableAccountingCodeType": "AccountsReceivable",
                        "contractAssetAccountingCode": null,
                        "contractAssetAccountingCodeType": null,
                        "contractLiabilityAccountingCode": null,
                        "contractLiabilityAccountingCodeType": null,
                        "adjustmentLiabilityAccountingCode": null,
                        "adjustmentLiabilityAccountingCodeType": null,
                        "unbilledReceivablesAccountingCode": null,
                        "unbilledReceivablesAccountingCodeType": null,
                        "adjustmentRevenueAccountingCode": null,
                        "adjustmentRevenueAccountingCodeType": null,
                        "contractRecognizedRevenueAccountingCode": null,
                        "contractRecognizedRevenueAccountingCodeType": null
                      },
                      "deliverySchedule": null,
                      "isStackedDiscount": false,
                      "productRatePlanChargeNumber": null,
                      "formula": "lookup(\"soldToRegion__c\" = fieldLookup(\"subscription\", \"soldToRegion__c\"))",
                      "productChargeDefinitions": "https://rest-staging2.zuora.com/apps/v1/product-charge-definitions?charge=edca018c566983fa11f6d38381b10000",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETProductRatePlanChargeResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Retrieve a product rate plan charge",
        "tags": [
          "Product Rate Plan Charges"
        ]
      }
    },
    "/v1/object/product-rate-plan-charge": {
      "post": {
        "description": "Creates a product rate plan charge for a specified rate plan charge. \n\nProduct rate plan charges can be of three types, one-time fees, recurring fees, and usage fees. \n",
        "operationId": "Object_POSTProductRatePlanCharge",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_rejectUnknownFields"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyCreateProductRatePlanCharge"
              },
              "examples": {
                "valid_per_specific_months": {
                  "summary": "SpecificListPriceBase at upper bound example",
                  "value": {
                    "Name": "Maximum Specific List Price Base Charge",
                    "Description": "Charge with maximum specific list price base",
                    "ChargeModel": "Flat Fee Pricing",
                    "ChargeType": "Recurring",
                    "ProductRatePlanId": "{YourProductRatePlanId}",
                    "BillCycleType": "DefaultFromCustomer",
                    "BillingPeriod": "Month",
                    "TriggerEvent": "ContractEffective",
                    "ListPriceBase": "Per Specific Months",
                    "SpecificListPriceBase": 120,
                    "ProductRatePlanChargeTierData": {
                      "ProductRatePlanChargeTier": [
                        {
                          "Price": 99.99
                        }
                      ]
                    },
                    "UseDiscountSpecificAccountingCode": false
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Id": "2c93808457d787030157e03197714910",
                      "Success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyCreateOrModifyResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Create a product rate plan charge",
        "tags": [
          "Product Rate Plan Charges"
        ]
      }
    },
    "/v1/object/product-rate-plan-charge/{id}": {
      "get": {
        "description": "Retrieves a specific product rate plan charge.",
        "operationId": "Object_GETProductRatePlanCharge",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version"
          },
          {
            "description": "Object fields to return",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID of a product rate plan charge to be retrieved. For example, 2c93808457d787030157e031fcd34e19.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "AccountingCode": "name_1476935155610",
                      "BillCycleDay": 1,
                      "BillCycleType": "DefaultFromCustomer",
                      "BillingPeriod": "Month",
                      "BillingPeriodAlignment": "AlignToCharge",
                      "BillingTiming": "In Advance",
                      "ChargeModel": "Flat Fee Pricing",
                      "ChargeType": "Recurring",
                      "CreatedById": "2c93808457d787030157e031dd264c85",
                      "CreatedDate": "2016-10-20T05:45:55.000+02:00",
                      "DefaultQuantity": 1,
                      "DeferredRevenueAccount": "name_1476935155610",
                      "Description": "Recurring Flat Fee Pricing",
                      "EndDateCondition": "SubscriptionEnd",
                      "Id": "2c93808457d787030157e032002b4e21",
                      "IncludedUnits": 0,
                      "LegacyRevenueReporting": false,
                      "ListPriceBase": "Per Billing Period",
                      "Name": "Recurring_Flat Fee Pricing1476935155610",
                      "NumberOfPeriod": 1,
                      "OverageCalculationOption": "EndOfSmoothingPeriod",
                      "OverageUnusedUnitsCreditOption": "NoCredit",
                      "PriceChangeOption": "NoChange",
                      "PriceIncreasePercentage": 0,
                      "ProductRatePlanId": "2c93808457d787030157e031ff054e1e",
                      "RecognizedRevenueAccount": "name_1476935155610",
                      "RevenueRecognitionRuleName": "Recognize upon invoicing",
                      "Taxable": false,
                      "TriggerEvent": "ContractEffective",
                      "UpToPeriodsType": "Billing Periods",
                      "UpdatedById": "2c93808457d787030157e031dd264c85",
                      "UpdatedDate": "2016-10-20T05:45:55.000+02:00",
                      "UseTenantDefaultForPriceChange": true,
                      "Formula": ""
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyGetProductRatePlanCharge"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "done": true,
                      "records": {},
                      "size": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyNoDataResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Retrieve a product rate plan charge",
        "tags": [
          "Product Rate Plan Charges"
        ]
      },
      "put": {
        "description": "Updates the information about a product rate plan charge.\n",
        "operationId": "Object_PUTProductRatePlanCharge",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_rejectUnknownFields"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version"
          },
          {
            "description": "The unique ID of the product rate plan charge to be updated. For example, 2c93808457d787030157e031fcd34e19.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyModifyProductRatePlanCharge"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Id": "2c93808457d787030157e03197714910",
                      "Success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyCreateOrModifyResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "done": true,
                      "records": {},
                      "size": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyNoDataResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Update a product rate plan charge",
        "tags": [
          "Product Rate Plan Charges"
        ]
      },
      "delete": {
        "description": "Deletes a product rate plan charge.\n",
        "operationId": "Object_DELETEProductRatePlanCharge",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The unique ID of the product rate plan charge to be deleted. For example, 2c93808457d787030157e031fcd34e19.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "2c93808457d787030157e031fcd34e19",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyDeleteResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Delete a product rate plan charge",
        "tags": [
          "Product Rate Plan Charges"
        ]
      }
    },
    "/v1/product-charge-definitions": {
      "post": {
        "description": "Creates a product charge definition for a charge. You can create as many product charge definitions as needed for one charge.\n\nIn the request, you must specify the unique ID or number of the charge for which this charge definition is to be created. \nThe ID or number of a product rate plan is optional.\n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing) feature to be enabled, which is in the **Early Adopter** phase. \n   \n",
        "operationId": "POST_CreateProductChargeDefinition",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTChargeDefinitionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "chargeDefinitionId": "8a90988c8b177a24018b17857411002a",
                      "chargeDefinitionNumber": "CD-00002089",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTChargeDefinitionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a product charge definition",
        "tags": [
          "Product Charge Definitions"
        ]
      },
      "get": {
        "description": "Retrieves basic information about the product charge definitions. \n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing) feature to be enabled, which is in the **Early Adopter** phase. \n",
        "operationId": "GET_RetrieveProductChargeDefinitions",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique number or ID of the charge for which the product charge definitions are to be retrieved.\n",
            "in": "query",
            "name": "charge",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique number or ID of the product rate plan for which the product charge definitions are to be retrieved.\n",
            "in": "query",
            "name": "rateplan",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The flag that controls whether the response will merge the default charge definition fields for those fields that are not overridden.\n",
            "in": "query",
            "name": "hide-inherited-values",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "chargeDefinitions": [
                        {
                          "applyDiscountTo": null,
                          "billingDay": "DefaultFromCustomer",
                          "billingPeriod": "Month",
                          "billingPeriodAlignment": "AlignToCharge",
                          "billingTiming": "IN_ADVANCE",
                          "chargeModel": "FlatFee",
                          "defaultQuantity": 1,
                          "deliverySchedule": null,
                          "description": "",
                          "discountClass": null,
                          "discountLevel": null,
                          "effectiveEndDate": "2023-10-13 09:00:00",
                          "effectiveStartDate": "2022-10-07 09:00:00",
                          "endDateCondition": "Subscription_End",
                          "financeInformation": {
                            "accountsReceivableAccountingCode": null,
                            "accountsReceivableAccountingCodeType": null,
                            "deferredRevenueAccountingCode": "",
                            "deferredRevenueAccountingCodeType": null,
                            "recognizedRevenueAccountingCode": "",
                            "recognizedRevenueAccountingCodeType": null
                          },
                          "isDefault": true,
                          "isStackedDiscount": false,
                          "listPriceBase": "Per_Billing_Period",
                          "numberOfPeriods": null,
                          "overageCalculationOption": null,
                          "overageUnusedUnitsCreditOption": null,
                          "priceChangeOption": null,
                          "priceIncreasePercentage": null,
                          "prices": [
                            {
                              "currency": "EUR",
                              "price": 10
                            },
                            {
                              "currency": "JPY",
                              "price": 20
                            },
                            {
                              "currency": "USD",
                              "price": 25
                            }
                          ],
                          "productChargeDefinitionId": "2c9890f78b0d09d2018b0d13c7fd0004",
                          "productChargeDefinitionNumber": "CD-00000201",
                          "productDiscountApplyDetails": [],
                          "productRatePlanChargeId": "2c9890f78b0d09d2018b0d13c7fd0004",
                          "productRatePlanChargeNumber": null,
                          "productRatePlanId": null,
                          "productRatePlanName": null,
                          "productRatePlanNumber": null,
                          "ratingGroup": null,
                          "revRecCode": null,
                          "revRecTriggerCondition": null,
                          "revenueRecognitionRuleName": "Recognize upon invoicing",
                          "smoothingModel": null,
                          "specificBillingPeriod": null,
                          "specificListPriceBase": null,
                          "taxCode": "",
                          "taxMode": null,
                          "taxable": false,
                          "term": null,
                          "termPeriodType": null,
                          "termType": null,
                          "triggerEvent": "ContractEffective",
                          "uom": null,
                          "upToPeriods": null,
                          "upToPeriodsType": null,
                          "usageRecordRatingOption": null,
                          "useDiscountSpecificAccountingCode": null,
                          "useTenantDefaultForPriceChange": true
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETProductChargeDefinitionsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List product charge definitions",
        "tags": [
          "Product Charge Definitions"
        ]
      }
    },
    "/v1/product-charge-definitions/bulk": {
      "post": {
        "description": "Bulk creates product charge definitions for a charge. You can create up to 1000 product charge definitions at a given time for a specific charge.\n\nIn the request, you must specify the unique ID or number of the charge for which this charge definition is to be created. \nThe ID or number of a product rate plan is optional.\n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing) feature to be enabled, which is in the **Early Adopter** phase. \n",
        "operationId": "POST_CreateProductChargeDefinitionBulk",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTChargeDefinitionRequestBulk"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "summary": {
                        "successCount": 1,
                        "failureCount": 0,
                        "failures": []
                      },
                      "results": [
                        {
                          "chargeDefinitionId": "8a9084f99325571d01932a15d64a3a1b",
                          "chargeDefinitionNumber": "CD-00052014",
                          "success": true
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTChargeDefinitionBulkResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create product charge definitions",
        "tags": [
          "Product Charge Definitions"
        ]
      },
      "put": {
        "description": "Bulk updates multiple product charge definitions.\n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing) feature to be enabled, which is in the **Early Adopter** phase. \n",
        "operationId": "PUT_UpdateProductChargeDefinitionBulk",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTProductChargeDefinitionBulkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "chargeDefinitions": [
                        {
                          "applyDiscountTo": null,
                          "billingDay": "DefaultFromCustomer",
                          "billingPeriod": "Month",
                          "billingPeriodAlignment": "AlignToCharge",
                          "billingTiming": "IN_ADVANCE",
                          "chargeModel": "FlatFee",
                          "defaultQuantity": 1,
                          "deliverySchedule": null,
                          "description": "",
                          "discountClass": null,
                          "discountLevel": null,
                          "endDateCondition": "Subscription_End",
                          "financeInformation": {
                            "accountsReceivableAccountingCode": null,
                            "accountsReceivableAccountingCodeType": null,
                            "deferredRevenueAccountingCode": "",
                            "deferredRevenueAccountingCodeType": null,
                            "recognizedRevenueAccountingCode": "",
                            "recognizedRevenueAccountingCodeType": null
                          },
                          "isDefault": true,
                          "isStackedDiscount": false,
                          "listPriceBase": "Per_Billing_Period",
                          "numberOfPeriods": null,
                          "overageCalculationOption": null,
                          "overageUnusedUnitsCreditOption": null,
                          "priceChangeOption": null,
                          "priceIncreasePercentage": null,
                          "prices": [
                            {
                              "currency": "EUR",
                              "price": 10
                            },
                            {
                              "currency": "JPY",
                              "price": 20
                            },
                            {
                              "currency": "USD",
                              "price": 25
                            }
                          ],
                          "productChargeDefinitionId": "2c9890f78b0d09d2018b0d13c7fd0004",
                          "productChargeDefinitionNumber": "CD-00000201",
                          "productDiscountApplyDetails": [],
                          "productRatePlanChargeId": "2c9890f78b0d09d2018b0d13c7fd0004",
                          "productRatePlanChargeNumber": null,
                          "productRatePlanId": null,
                          "productRatePlanName": null,
                          "productRatePlanNumber": null,
                          "ratingGroup": null,
                          "revRecCode": null,
                          "revRecTriggerCondition": null,
                          "revenueRecognitionRuleName": "Recognize upon invoicing",
                          "smoothingModel": null,
                          "specificBillingPeriod": null,
                          "specificListPriceBase": null,
                          "taxCode": "",
                          "taxMode": null,
                          "taxable": false,
                          "term": null,
                          "termPeriodType": null,
                          "termType": null,
                          "triggerEvent": "ContractEffective",
                          "uom": null,
                          "upToPeriods": null,
                          "upToPeriodsType": null,
                          "usageRecordRatingOption": null,
                          "useDiscountSpecificAccountingCode": null,
                          "useTenantDefaultForPriceChange": true
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETProductChargeDefinitionsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update product charge definitions",
        "tags": [
          "Product Charge Definitions"
        ]
      }
    },
    "/v1/product-charge-definitions/{product-charge-definition-key}": {
      "get": {
        "description": "Retrieves basic information about a product charge definition.\n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing) feature to be enabled, which is in the **Early Adopter** phase. \n",
        "operationId": "GET_RetrieveProductChargeDefinition",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique number or ID of the product charge definition to be retrieved.\n",
            "in": "path",
            "name": "product-charge-definition-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The flag that controls whether the response will merge the default charge definition fields for those fields that are not overridden.\n",
            "in": "query",
            "name": "hide-inherited-values",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "applyDiscountTo": null,
                      "billingDay": "DefaultFromCustomer",
                      "billingPeriod": "Month",
                      "billingPeriodAlignment": "AlignToCharge",
                      "billingTiming": "IN_ADVANCE",
                      "chargeModel": "FlatFee",
                      "defaultQuantity": 1,
                      "deliverySchedule": null,
                      "description": "",
                      "discountClass": null,
                      "discountLevel": null,
                      "effectiveEndDate": "2023-10-13 09:00:00",
                      "effectiveStartDate": "2022-10-07 09:00:00",
                      "endDateCondition": "Subscription_End",
                      "financeInformation": {
                        "accountsReceivableAccountingCode": null,
                        "accountsReceivableAccountingCodeType": null,
                        "deferredRevenueAccountingCode": "",
                        "deferredRevenueAccountingCodeType": null,
                        "recognizedRevenueAccountingCode": "",
                        "recognizedRevenueAccountingCodeType": null
                      },
                      "isDefault": true,
                      "isStackedDiscount": false,
                      "listPriceBase": "Per_Billing_Period",
                      "numberOfPeriods": null,
                      "overageCalculationOption": null,
                      "overageUnusedUnitsCreditOption": null,
                      "priceChangeOption": null,
                      "priceIncreasePercentage": null,
                      "prices": [
                        {
                          "currency": "EUR",
                          "price": 10
                        },
                        {
                          "currency": "JPY",
                          "price": 20
                        },
                        {
                          "currency": "USD",
                          "price": 25
                        }
                      ],
                      "productChargeDefinitionId": "2c9890f78b0d09d2018b0d13c7fd0004",
                      "productChargeDefinitionNumber": "CD-00000201",
                      "productDiscountApplyDetails": [],
                      "productRatePlanChargeId": "2c9890f78b0d09d2018b0d13c7fd0004",
                      "productRatePlanChargeNumber": null,
                      "productRatePlanId": null,
                      "productRatePlanName": null,
                      "productRatePlanNumber": null,
                      "ratingGroup": null,
                      "revRecCode": null,
                      "revRecTriggerCondition": null,
                      "revenueRecognitionRuleName": "Recognize upon invoicing",
                      "smoothingModel": null,
                      "specificBillingPeriod": null,
                      "specificListPriceBase": null,
                      "success": true,
                      "taxCode": "",
                      "taxMode": null,
                      "taxable": false,
                      "term": null,
                      "termPeriodType": null,
                      "termType": null,
                      "triggerEvent": "ContractEffective",
                      "uom": null,
                      "upToPeriods": null,
                      "upToPeriodsType": null,
                      "usageRecordRatingOption": null,
                      "useDiscountSpecificAccountingCode": null,
                      "useTenantDefaultForPriceChange": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETProductChargeDefinitionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a product charge definition",
        "tags": [
          "Product Charge Definitions"
        ]
      },
      "put": {
        "description": "Update a product charge definition.\n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing) feature to be enabled, which is in the **Early Adopter** phase. \n",
        "operationId": "PUT_UpdateProductChargeDefinition",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique number or ID of the product charge definition to be updated.\n",
            "in": "path",
            "name": "product-charge-definition-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTProductChargeDefinitionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "applyDiscountTo": null,
                      "billingPeriod": "Month",
                      "billingPeriodAlignment": "AlignToCharge",
                      "billingTiming": "IN_ADVANCE",
                      "chargeModel": "FlatFee",
                      "defaultQuantity": 1,
                      "discountClass": null,
                      "discountLevel": null,
                      "effectiveEndDate": "2023-10-13 09:00:00",
                      "effectiveStartDate": "2022-10-07 09:00:00",
                      "isDefault": true,
                      "listPriceBase": "Per_Billing_Period",
                      "numberOfPeriods": null,
                      "prices": [
                        {
                          "currency": "USD",
                          "price": 20
                        }
                      ],
                      "productChargeDefinitionId": "2c9890f78b0d09d2018b0d13c7fd0004",
                      "productChargeDefinitionNumber": "CD-00000201",
                      "productRatePlanChargeId": "2c9890f78b0d09d2018b0d13c7fd0004",
                      "productRatePlanChargeNumber": null,
                      "productRatePlanId": null,
                      "productRatePlanName": null,
                      "productRatePlanNumber": null,
                      "ratingGroup": null,
                      "smoothingModel": null,
                      "specificBillingPeriod": null,
                      "specificListPriceBase": null,
                      "success": true,
                      "taxCode": "",
                      "taxMode": null,
                      "taxable": false,
                      "term": null,
                      "termPeriodType": null,
                      "termType": null,
                      "uom": null
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETProductChargeDefinitionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a product charge definition",
        "tags": [
          "Product Charge Definitions"
        ]
      },
      "delete": {
        "description": "Deletes a product charge definition.\n\n**Note**: This operation requires the [Attribute-based Pricing](https://knowledgecenter.zuora.com/Zuora_Billing/Build_products_and_prices/Attribute_based_pricing/AA_Overview_of_Attribute-based_Pricing) feature to be enabled, which is in the **Early Adopter** phase. \n",
        "operationId": "DELETE_ProductChargeDefnition",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique number or ID of the product charge definition to be deleted.\n",
            "in": "path",
            "name": "product-charge-definition-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a product charge definition",
        "tags": [
          "Product Charge Definitions"
        ]
      }
    },
    "/v1/object/product-rate-plan-charge-tier/{id}": {
      "get": {
        "description": "Retrieves a specific product rate plan charge tier.",
        "operationId": "Object_GETProductRatePlanChargeTier",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "Object fields to return",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "CreatedById": "2c93808457d787030157e02fd0f132a4",
                      "CreatedDate": "2016-10-20T05:43:38.000+02:00",
                      "Currency": "USD",
                      "EndingUnit": 0,
                      "Id": "2c93808457d787030157e02fe725341f",
                      "Price": 30,
                      "PriceFormat": "Flat Fee",
                      "StartingUnit": 0,
                      "Tier": 1,
                      "UpdatedById": "2c93808457d787030157e02fd0f132a4",
                      "UpdatedDate": "2016-10-20T05:43:38.000+02:00"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyGetProductRatePlanChargeTier"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "done": true,
                      "records": {},
                      "size": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyNoDataResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Retrieve a product rate plan charge tier",
        "tags": [
          "Product Rate Plan Charge Tiers"
        ]
      },
      "put": {
        "description": "Updates the price of a product rate plan charge tier.\n\nTo make other updates to product rate plan charge tiers, use [CRUD: Update a product rate plan charge](https://developer.zuora.com/api-references/api/operation/Object_PUTProductRatePlanCharge) and specify `ProductRatePlanChargeTierData` in the request body.\n",
        "operationId": "Object_PUTProductRatePlanChargeTier",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_rejectUnknownFields"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The unique ID of the product rate plan charge tier to be updated. For example, 2c92c0f86c85891e016c88d55a6e543b.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyModifyProductRatePlanChargeTier"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Id": "2c92c0f86c85891e016c88d55a6e543b",
                      "Success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyCreateOrModifyResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Update a product rate plan charge tier",
        "tags": [
          "Product Rate Plan Charge Tiers"
        ]
      }
    },
    "/v1/revpro-accounting-codes": {
      "put": {
        "description": "Update the Zuora Revenue accounting code that corresponds to a specific Product Rate Plan Charge Id in Zuora Billing.",
        "operationId": "PUT_RevProAccountingCodes",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevproAccountingCodes"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTRevproAccCodeResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a Zuora Revenue accounting code",
        "tags": [
          "Zuora Revenue Integration"
        ]
      }
    },
    "/commerce/charges": {
      "post": {
        "summary": "Create a product rate plan charge with Dynamic Pricing",
        "description": "Create a product rate plan charge (PRPC) in the Product Catalog.\nUse this endpoint to configure Dynamic Pricing, including default pricing at the charge level \nand conditional rate cards evaluated by attribute values.\n",
        "operationId": "createProductRatePlanChargeWithDynamicPricing",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateChargeRequest"
              },
              "examples": {
                "perUnitExample": {
                  "summary": "Per-unit charge example",
                  "value": {
                    "charge": {
                      "charge_model": "per_unit",
                      "charge_type": "recurring",
                      "description": "description",
                      "name": "charge with dimensional price 1",
                      "unit_of_measure": "Each",
                      "default_quantity": 10,
                      "bill_cycle": {
                        "period": "bill_cycle_period_month",
                        "period_alignment": "align_to_charge",
                        "timing": "in_advance",
                        "type": "default_from_customer"
                      },
                      "trigger_event": "contract_effective",
                      "product_rate_plan_id": "f5cf096c5ca94443f76446a981e50000",
                      "end_date_condition": "subscription_end",
                      "up_to_periods_type": "billing_periods",
                      "up_to_periods": 0,
                      "list_price_base": "Per_Billing_Period",
                      "specific_list_price_base": 0,
                      "formula": "price + 1",
                      "tax_mode": "non_taxable",
                      "tax_code": "TAX_EXEMPT",
                      "accounting": {
                        "accounting_code": "PRPC-REV-001",
                        "accounts_receivable_account": "Accounts Receivable",
                        "deferred_revenue_account": "Deferred Revenue",
                        "recognized_revenue_account": "Recognized Revenue",
                        "contract_asset_account": "Contract Asset",
                        "contract_liability_account": "Contract Liability",
                        "contract_recognized_revenue_account": "Contract Recognized Revenue",
                        "unbilled_receivables_account": "Unbilled Receivables",
                        "adjustment_liability_account": "Adjustment Liability",
                        "adjustment_revenue_account": "Adjustment Revenue"
                      },
                      "revenue": {
                        "revenue_recognition_rule_name": "Recognize upon invoicing",
                        "exclude_item_billing_from_revenue_accounting": false,
                        "exclude_item_booking_from_revenue_accounting": false
                      },
                      "custom_fields": {
                        "region__c": "US",
                        "channel__c": "Online"
                      },
                      "netsuite": {
                        "SubsidiaryNS": "US",
                        "RecognizedRevAccountNS": 4000,
                        "DeferredRevAccountNS": 2500
                      },
                      "attributes": [
                        {
                          "name": "Age",
                          "type": "Integer",
                          "mapping": {
                            "object": "account",
                            "field": "age__c"
                          }
                        }
                      ],
                      "rate_cards": [
                        {
                          "attributes": [
                            {
                              "name": "Age",
                              "operator": "<=",
                              "value": 12
                            }
                          ],
                          "pricing": {
                            "unit_amounts": {
                              "USD": 90
                            }
                          }
                        },
                        {
                          "attributes": [
                            {
                              "name": "Age",
                              "operator": "between",
                              "value": [
                                12,
                                60
                              ]
                            }
                          ],
                          "pricing": {
                            "unit_amounts": {
                              "USD": 100
                            }
                          }
                        },
                        {
                          "attributes": [
                            {
                              "name": "Age",
                              "operator": ">=",
                              "value": 60
                            }
                          ],
                          "pricing": {
                            "unit_amounts": {
                              "USD": 80
                            }
                          }
                        }
                      ]
                    }
                  }
                },
                "tieredExample": {
                  "summary": "Tiered charge example",
                  "value": {
                    "charge": {
                      "charge_model": "tiered",
                      "charge_type": "usage",
                      "name": "tiered charge",
                      "unit_of_measure": "Each",
                      "bill_cycle": {
                        "period": "bill_cycle_period_month",
                        "period_alignment": "align_to_charge",
                        "timing": "in_arrears",
                        "type": "default_from_customer"
                      },
                      "trigger_event": "contract_effective",
                      "product_rate_plan_id": "f5cf096c5ca94443f76446a981e50000",
                      "attributes": [
                        {
                          "name": "Region",
                          "type": "String"
                        }
                      ],
                      "rate_cards": [
                        {
                          "attributes": [
                            {
                              "name": "Region",
                              "operator": "==",
                              "value": "US"
                            }
                          ],
                          "pricing": {
                            "tiers": [
                              {
                                "tier": "1",
                                "from": 0,
                                "up_to": 10,
                                "price_format": "price_format_per_unit",
                                "unit_amounts": {
                                  "USD": 2.5
                                },
                                "min_amounts": {
                                  "USD": 6.25
                                },
                                "max_amounts": {
                                  "USD": 25
                                }
                              },
                              {
                                "tier": "2",
                                "from": 11,
                                "price_format": "price_format_per_unit",
                                "unit_amounts": {
                                  "USD": 1.5
                                },
                                "min_amounts": {
                                  "USD": 15
                                },
                                "max_amounts": {
                                  "USD": 150
                                }
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateChargeResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "accounting": {
                        "accountingCode": "PRPC-REV-001",
                        "accountsReceivableAccount": "Accounts Receivable",
                        "accountsReceivableAccountType": "AccountsReceivable",
                        "deferredRevenueAccount": "Deferred Revenue",
                        "deferredRevenueAccountType": "DeferredRevenue",
                        "recognizedRevenueAccount": "Recognized Revenue",
                        "recognizedRevenueAccountType": "Recognized Revenue",
                        "adjustmentLiabilityAccount": "adjustL-1",
                        "adjustmentLiabilityAccountType": "AdjustmentLiability",
                        "adjustmentRevenueAccount": "adjustRev-1",
                        "adjustmentRevenueAccountType": "AdjustmentRevenue",
                        "contractAssetAccount": "CA-2",
                        "contractAssetAccountType": "ContractAsset",
                        "contractLiabilityAccount": "CL-2",
                        "contractLiabilityAccountType": "ContractLiability",
                        "contractRecognizedRevenueAccount": "Contract Recognized Revenue",
                        "contractRecognizedRevenueAccountType": "RecognizedRevenue",
                        "unbilledReceivablesAccount": "unbilledR-1",
                        "unbilledReceivablesAccountType": "UnbilledReceivables",
                        "productRatePlanChargeId": "ad95b694d2b8442b84dc8ad26561c7d7"
                      },
                      "attributes": [],
                      "billCycle": {
                        "dayOfMonth": 5,
                        "period": "bill_cycle_period_month",
                        "periodAlignment": "align_to_charge",
                        "timing": "in_advance",
                        "type": "specific_day_of_month"
                      },
                      "chargeFunction": "charge_function_standard",
                      "chargeModel": "flat_fee",
                      "chargeType": "recurring",
                      "createdById": "53c162482f054f3ca08e1ec82dccfec9",
                      "createdTime": "2025-10-13T07:46:02.000+00:00",
                      "customFields": {},
                      "discountOptions": {
                        "applyDetails": [],
                        "applyTo": [],
                        "applyToBillingPeriodPartially": false,
                        "reflectDiscountInNetAmount": false,
                        "rollover": false,
                        "stackedDiscount": false
                      },
                      "drawdown": {},
                      "endDateCondition": "subscription_end",
                      "upToPeriodsType": "billing_periods",
                      "upToPeriods": 0,
                      "extendedPrice": {},
                      "id": "ad95b694d2b8442b84dc8ad26561c7d7",
                      "isChargeLevelMinCommit": false,
                      "isCommitted": false,
                      "labels": {},
                      "listPriceBase": "Per_Billing_Period",
                      "specificListPriceBase": 0,
                      "mergedRateCards": [],
                      "name": "Flat PRPC 1",
                      "negotiatedRateCards": [],
                      "ocmJsonByCurrency": {},
                      "organizationLabels": [],
                      "overageOptions": {
                        "includedUnits": 0,
                        "unusedUnitsCreditRates": {}
                      },
                      "prepaid": false,
                      "prepayment": {
                        "rollover": false,
                        "rolloverApply": "apply_last",
                        "rolloverPeriodLength": 0,
                        "rolloverPeriods": 0
                      },
                      "priceChangeOption": "no_change",
                      "pricing": {
                        "adjustments": {},
                        "discountAmounts": {},
                        "discountPercentages": {},
                        "flatAmounts": {
                          "USD": 100
                        },
                        "maxAmounts": {},
                        "minAmounts": {},
                        "percentages": {},
                        "tiers": [],
                        "unitAmounts": {}
                      },
                      "pricingSummary": [
                        "USD100"
                      ],
                      "pricingWaterfalls": {},
                      "productChargeDefinitions": [],
                      "productRatePlanChargeNumber": "PRPC-00000279",
                      "productRatePlanId": "ee2d1ce1036c4dd6ae9d6945565ff7a0",
                      "prorationOption": "default_from_tenant_setting",
                      "rateCards": [],
                      "revenue": {
                        "excludeItemBillingFromRevenueAccounting": false,
                        "excludeItemBookingFromRevenueAccounting": false,
                        "legacyReporting": false,
                        "revenueRecognitionRuleName": "Recognize upon invoicing"
                      },
                      "taxMode": "non_taxable",
                      "taxCode": "TAX_EXEMPT",
                      "taxable": false,
                      "triggerEvent": "contract_effective",
                      "updatedById": "53c162482f054f3ca08e1ec82dccfec9",
                      "updatedTime": "2025-10-13T07:46:02.000+00:00",
                      "useTenantDefaultForPriceChange": true
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "Errors": [
                        {
                          "Code": "INVALID_VALUE",
                          "Message": "The account number 123xProxy is invalid."
                        }
                      ],
                      "Success": false
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\\n\\n```\\n\\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\\n\\n```\\n",
                "schema": {
                  "type": "string",
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ]
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "tags": [
          "Commerce"
        ]
      },
      "put": {
        "description": "Update an existing product rate plan charge (PRPC). Use this API to update default pricing and/or conditional rate cards.\n",
        "operationId": "updateProductRatePlanChargeWithDynamicPricing",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateChargeRequest"
              },
              "example": {
                "charge": {
                  "id": "9c4867ed55db43a89731605d5654d4ed",
                  "pricing": {
                    "unit_amounts": {
                      "USD": 175
                    }
                  },
                  "rate_cards": [
                    {
                      "attributes": [
                        {
                          "name": "Age",
                          "operator": "<=",
                          "value": 12
                        },
                        {
                          "name": "EffectiveDate",
                          "operator": ">=",
                          "value": "2025-02-01T00:00:00+00:00"
                        }
                      ],
                      "pricing": {
                        "unit_amounts": {
                          "USD": 180
                        }
                      }
                    },
                    {
                      "attributes": [
                        {
                          "name": "Age",
                          "operator": "between",
                          "value": [
                            12,
                            60
                          ]
                        },
                        {
                          "name": "EffectiveDate",
                          "operator": ">=",
                          "value": "2025-02-01T00:00:00+00:00"
                        }
                      ],
                      "pricing": {
                        "unit_amounts": {
                          "USD": 200
                        }
                      }
                    },
                    {
                      "attributes": [
                        {
                          "name": "Age",
                          "operator": ">=",
                          "value": 60
                        },
                        {
                          "name": "EffectiveDate",
                          "operator": ">=",
                          "value": "2025-02-01T00:00:00+00:00"
                        }
                      ],
                      "pricing": {
                        "unit_amounts": {
                          "USD": 160
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateChargeResponse"
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "description": "Request Errors or Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "schema": {
                  "type": "string"
                }
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "The value of this header is:\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a product rate plan charge with Dynamic Pricing",
        "tags": [
          "Commerce"
        ]
      }
    },
    "/commerce/charges/query": {
      "post": {
        "description": "Returns a product rate plan charge (PRPC) by evaluating Dynamic Pricing against the provided attribute values.  \nIf a matching rate-card row is found, its pricing is returned; otherwise, the default charge-level pricing is used (if defined).  \nThis operation can be used to simulate pricing resolution without creating or updating the charge.\n",
        "operationId": "queryProductRatePlanChargeWithDynamicPricing",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryChargeRequest"
              },
              "examples": {
                "minimal": {
                  "summary": "Query with only the PRPC key (no attributes)",
                  "value": {
                    "product_rate_plan_charge_key": "ad95b694d2b8442b84dc8ad26561c7d7"
                  }
                },
                "withAttributes": {
                  "summary": "Query with optional attribute values",
                  "value": {
                    "product_rate_plan_charge_key": "ad95b694d2b8442b84dc8ad26561c7d7",
                    "evaluation_level": "LIST_PRICE",
                    "attributes": [
                      {
                        "name": "Age",
                        "number_value": 11
                      },
                      {
                        "name": "EffectiveDate",
                        "datetime_value": "2025-02-01T00:00:00Z"
                      },
                      {
                        "name": "AccountContext",
                        "value": "Liquidity Provider"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateChargeResponse"
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Errors": [
                        {
                          "Code": "INVALID_VALUE",
                          "Message": "The account number 123xProxy is invalid."
                        }
                      ],
                      "Success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Query a product rate plan charge with Dynamic Pricing",
        "tags": [
          "Commerce"
        ]
      }
    },
    "/commerce/products": {
      "post": {
        "summary": "Create a product with plans and charges",
        "description": "Create a product in the Product Catalog with one or more plans and charges.\nCharges can be usage (per-unit), recurring (flat fee), or other supported models.\n",
        "operationId": "createProduct",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProductRequest"
              },
              "examples": {
                "createProductExample": {
                  "summary": "Product with one plan and one recurring flat-fee charge",
                  "value": {
                    "name": "New prod",
                    "start_date": "2024-01-01",
                    "end_date": "2050-12-31",
                    "category": "base",
                    "plans": [
                      {
                        "name": "Consumer Bronze Monthly",
                        "start_date": "2024-01-01",
                        "end_date": "2050-12-31",
                        "active_currencies": [
                          "USD"
                        ],
                        "charges": [
                          {
                            "name": "Flat PRPC",
                            "charge_type": "recurring",
                            "charge_model": "flat_fee",
                            "default_quantity": 10,
                            "min_quantity": 1,
                            "max_quantity": 999999,
                            "price_increase_percentage": 0,
                            "price_change_option": "no_change",
                            "use_tenant_default_for_price_change": true,
                            "discount_options": {
                              "discount_class": "",
                              "discount_level": "rate_plan",
                              "stacked_discount": false,
                              "apply_to": [
                                "one_time",
                                "recurring",
                                "usage"
                              ],
                              "apply_to_billing_period_partially": false,
                              "reflect_discount_in_net_amount": false,
                              "rollover": false,
                              "specific_accounting_codes": false,
                              "apply_details": []
                            },
                            "pricing": {
                              "flat_amounts": {
                                "USD": 100
                              }
                            },
                            "bill_cycle": {
                              "type": "specific_day_of_month",
                              "day_of_month": 5,
                              "period_alignment": "align_to_charge",
                              "period": "bill_cycle_period_month",
                              "timing": "in_advance"
                            },
                            "trigger_event": "contract_effective",
                            "end_date_condition": "subscription_end",
                            "up_to_periods_type": "billing_periods",
                            "up_to_periods": 0,
                            "list_price_base": "Per_Billing_Period",
                            "specific_list_price_base": 0,
                            "accounting": {
                              "accounting_code": "PRPC-REV-002",
                              "accounts_receivable_account": "Accounts Receivable",
                              "deferred_revenue_account": "Deferred Revenue",
                              "recognized_revenue_account": "Recognized Revenue",
                              "adjustment_liability_account": "adjustL-2",
                              "adjustment_revenue_account": "adjustRev-2",
                              "contract_asset_account": "CA-3",
                              "contract_liability_account": "CL-3",
                              "contract_recognized_revenue_account": "Contract Recognized Revenue",
                              "unbilled_receivables_account": "unbilledR-2"
                            }
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateProductResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "allowFeatureChanges": false,
                      "category": "base",
                      "contextFilters": [],
                      "createdBy": "53c162482f054f3ca08e1ec82dccfec9",
                      "createdTime": "2025-10-17T04:02:54.621-07:00",
                      "customFields": {},
                      "customObjects": null,
                      "description": "",
                      "endDate": "2050-12-31",
                      "features": [],
                      "id": "7ec58fadb6f84bc18e59c7529058d941",
                      "legacyFeatures": [],
                      "name": "New prod",
                      "netsuite": null,
                      "organizationLabels": [],
                      "plans": [
                        {
                          "activeCurrencies": [
                            "USD"
                          ],
                          "attributes": [],
                          "contextFilters": [],
                          "createTime": "2025-10-17T04:02:54.655-07:00",
                          "createdBy": "53c162482f054f3ca08e1ec82dccfec9",
                          "customFields": {},
                          "description": "",
                          "displayName": "",
                          "endDate": "2050-12-31",
                          "entitlements": [],
                          "externalIdSourceSystem": "",
                          "externalRateplanId": [],
                          "id": "572a2efe711b449e80cbef94419bc050",
                          "name": "Consumer Bronze Monthly",
                          "netsuite": null,
                          "organizationLabels": [],
                          "productId": "7ec58fadb6f84bc18e59c7529058d941",
                          "productRatePlanCharges": [
                            {
                              "accounting": {
                                "accountingCode": "Accounts Receivable",
                                "accountsReceivableAccount": "Accounts Receivable",
                                "deferredRevenueAccount": "Accounts Receivable",
                                "recognizedRevenueAccount": "Recognized Revenue"
                              },
                              "attributes": [],
                              "billCycle": {
                                "dayOfMonth": 5,
                                "period": "bill_cycle_period_month",
                                "periodAlignment": "align_to_charge",
                                "timing": "in_advance",
                                "type": "specific_day_of_month"
                              },
                              "chargeFunction": "charge_function_standard",
                              "chargeModel": "flat_fee",
                              "chargeType": "recurring",
                              "createdById": "53c162482f054f3ca08e1ec82dccfec9",
                              "createdTime": "2025-10-17T04:02:54.719-07:00",
                              "customFields": {},
                              "discountOptions": {
                                "applyDetails": [],
                                "applyTo": [],
                                "applyToBillingPeriodPartially": false,
                                "reflectDiscountInNetAmount": false,
                                "rollover": false,
                                "stackedDiscount": false
                              },
                              "drawdown": {},
                              "endDateCondition": "subscription_end",
                              "upToPeriodsType": "billing_periods",
                              "upToPeriods": 0,
                              "extendedPrice": {},
                              "id": "42db6ead399a4521bae91b3af469c074",
                              "isChargeLevelMinCommit": false,
                              "isCommitted": false,
                              "labels": {},
                              "listPriceBase": "Per_Billing_Period",
                              "specificListPriceBase": 0,
                              "mergedRateCards": [],
                              "name": "Flat PRPC",
                              "negotiatedRateCards": [],
                              "ocmJsonByCurrency": {},
                              "organizationLabels": [],
                              "overageOptions": {
                                "includedUnits": 0,
                                "unusedUnitsCreditRates": {}
                              },
                              "prepaid": false,
                              "prepayment": {
                                "rollover": false,
                                "rolloverApply": "apply_last",
                                "rolloverPeriodLength": 0,
                                "rolloverPeriods": 0
                              },
                              "priceChangeOption": "no_change",
                              "pricing": {
                                "adjustments": {},
                                "discountAmounts": {},
                                "discountPercentages": {},
                                "flatAmounts": {
                                  "USD": 100
                                },
                                "maxAmounts": {},
                                "minAmounts": {},
                                "percentages": {},
                                "tiers": [],
                                "unitAmounts": {}
                              },
                              "pricingSummary": [],
                              "pricingWaterfalls": {},
                              "productChargeDefinitions": [],
                              "productRatePlanChargeNumber": "PRPC-00000283",
                              "productRatePlanId": "572a2efe711b449e80cbef94419bc050",
                              "prorationOption": "default_from_tenant_setting",
                              "rateCards": [],
                              "revenue": {
                                "excludeItemBillingFromRevenueAccounting": false,
                                "excludeItemBookingFromRevenueAccounting": false,
                                "legacyReporting": false,
                                "revenueRecognitionRuleName": "Recognize upon invoicing"
                              },
                              "taxable": false,
                              "triggerEvent": "contract_effective",
                              "updatedById": "53c162482f054f3ca08e1ec82dccfec9",
                              "updatedTime": "2025-10-17T04:02:54.719-07:00",
                              "useTenantDefaultForPriceChange": true
                            }
                          ],
                          "productRatePlanNumber": "PRP-00000198",
                          "startDate": "2024-01-01",
                          "state": "active",
                          "updateTime": "2025-10-17T04:02:54.655-07:00",
                          "updatedBy": "53c162482f054f3ca08e1ec82dccfec9"
                        }
                      ],
                      "productNumber": "PC-00000105",
                      "sku": "SKU-00000135",
                      "startDate": "2024-01-01",
                      "state": "product_active",
                      "updatedBy": "53c162482f054f3ca08e1ec82dccfec9",
                      "updatedTime": "2025-10-17T04:02:54.621-07:00"
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "Returned if `Accept-Encoding: gzip` is specified and the response exceeds 1000 bytes. Supported MIME types: application/json, application/xml, text/html, text/csv, text/plain.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "schema": {
                  "type": "string",
                  "minLength": 36,
                  "maxLength": 36
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "Errors": [
                        {
                          "Code": "INVALID_VALUE",
                          "Message": "The account number 123xProxy is invalid."
                        }
                      ],
                      "Success": false
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Commerce"
        ]
      },
      "put": {
        "summary": "Update a product",
        "description": "Updates an existing product in the Product Catalog. Use this API to update core product fields\nsuch as name, description, category, effective dates, and custom fields.\n",
        "operationId": "updateProduct",
        "tags": [
          "Commerce"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProductRequest"
              },
              "example": {
                "id": "8ad088009840d1c2019855e15c993f2f",
                "name": "Software Service",
                "description": "Software service - basic edition",
                "category": "base",
                "custom_fields": {
                  "HelloBay__c": "Updated value",
                  "Tags__c": [
                    "AI Powered",
                    "Internet Required"
                  ]
                },
                "startDate": "2025-05-11",
                "endDate": "2050-12-10"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateProductResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "allowFeatureChanges": false,
                      "category": "base",
                      "contextFilters": [],
                      "createdBy": "8a90a2fd8030ea2e018032b11d3a3f06",
                      "createdTime": "2025-08-06T18:11:35.000-07:00",
                      "customFields": {},
                      "customObjects": null,
                      "description": "Software service - basic edition",
                      "endDate": "2050-12-31",
                      "features": [],
                      "id": "00c86e3a0595442c88ed9ef8474b10a7",
                      "legacyFeatures": [],
                      "name": "Amadeus",
                      "netsuite": null,
                      "organizationLabels": [],
                      "productNumber": "PC-00000095",
                      "productRatePlans": [],
                      "sku": "SKU-00000122",
                      "startDate": "2024-01-08",
                      "state": "product_active",
                      "updatedBy": "53c162482f054f3ca08e1ec82dccfec9",
                      "updatedTime": "2025-10-23T04:55:54.000-07:00"
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "description": "Request Errors or Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "schema": {
                  "type": "string"
                }
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "The value of this header is:\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      }
    },
    "/commerce/plans": {
      "post": {
        "summary": "Create a product rate plan",
        "description": "Create a product rate plan (Plan) under an existing product.\nA plan includes one or more **charges**. Each charge **must** include:\n  - `name`\n  - `charge_model`\n  - `charge_type`\n  - `bill_cycle`\n  - `trigger_event`\n  - `end_date_condition`\n  - `pricing`\n\n  Optional charge fields include: `unit_of_measure`, `list_price_base`, and `accounting` (with `accounting_code`, `deferred_revenue_account`, `recognized_revenue_account`).\n",
        "operationId": "createPlan",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlanRequest"
              },
              "examples": {
                "createPlanExample": {
                  "summary": "Create a plan with two recurring flat-fee charges",
                  "value": {
                    "product_key": "6b14067136304e64b090daccae6680cb",
                    "name": "New plan",
                    "start_date": "2024-01-01",
                    "end_date": "2049-12-31",
                    "active_currencies": [
                      "USD"
                    ],
                    "charges": [
                      {
                        "name": "Flat PRPC 1",
                        "charge_model": "flat_fee",
                        "charge_type": "recurring",
                        "pricing": {
                          "flat_amounts": {
                            "USD": 100
                          }
                        },
                        "bill_cycle": {
                          "type": "specific_day_of_month",
                          "day_of_month": 5,
                          "period_alignment": "align_to_charge",
                          "period": "bill_cycle_period_month"
                        },
                        "end_date_condition": "subscription_end",
                        "up_to_periods_type": "billing_periods",
                        "up_to_periods": 0,
                        "list_price_base": "Per_Billing_Period",
                        "specific_list_price_base": 0,
                        "trigger_event": "contract_effective",
                        "accounting": {
                          "accounting_code": "PRPC-REV-001",
                          "accounts_receivable_account": "Accounts Receivable",
                          "deferred_revenue_account": "Deferred Revenue",
                          "recognized_revenue_account": "Recognized Revenue",
                          "adjustment_liability_account": "adjustL-1",
                          "adjustment_revenue_account": "adjustRev-1",
                          "contract_asset_account": "CA-2",
                          "contract_liability_account": "CL-2",
                          "contract_recognized_revenue_account": "Contract Recognized Revenue",
                          "unbilled_receivables_account": "unbilledR-1"
                        }
                      },
                      {
                        "name": "Flat PRPC 2",
                        "charge_model": "flat_fee",
                        "charge_type": "recurring",
                        "pricing": {
                          "flat_amounts": {
                            "USD": 100
                          }
                        },
                        "bill_cycle": {
                          "type": "specific_day_of_month",
                          "day_of_month": 5,
                          "period_alignment": "align_to_charge",
                          "period": "bill_cycle_period_month"
                        },
                        "end_date_condition": "subscription_end",
                        "trigger_event": "contract_effective",
                        "accounting": {
                          "accounting_code": "PRPC-REV-002",
                          "accounts_receivable_account": "Accounts Receivable",
                          "deferred_revenue_account": "Deferred Revenue",
                          "recognized_revenue_account": "Recognized Revenue",
                          "adjustment_liability_account": "adjustL-2",
                          "adjustment_revenue_account": "adjustRev-2",
                          "contract_asset_account": "CA-3",
                          "contract_liability_account": "CL-3",
                          "contract_recognized_revenue_account": "Contract Recognized Revenue",
                          "unbilled_receivables_account": "unbilledR-2"
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePlanResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "activeCurrencies": [
                        "USD"
                      ],
                      "attributes": [],
                      "contextFilters": [],
                      "createTime": "2025-10-13T07:46:02.314-07:00",
                      "createdBy": "53c162482f054f3ca08e1ec82dccfec9",
                      "customFields": {},
                      "description": "",
                      "displayName": "",
                      "endDate": "2049-12-31",
                      "entitlements": [],
                      "externalIdSourceSystem": "",
                      "externalRateplanId": [],
                      "id": "ee2d1ce1036c4dd6ae9d6945565ff7a0",
                      "name": "New plan",
                      "netsuite": null,
                      "organizationLabels": [],
                      "productId": "7228c9e6fd814e3a9e59bcdf0117e34f",
                      "productRatePlanCharges": [
                        {
                          "accounting": {
                            "accountingCode": "PRPC-REV-001",
                            "accountsReceivableAccount": "Accounts Receivable",
                            "accountsReceivableAccountType": "AccountsReceivable",
                            "deferredRevenueAccount": "Deferred Revenue",
                            "deferredRevenueAccountType": "DeferredRevenue",
                            "recognizedRevenueAccount": "Recognized Revenue",
                            "recognizedRevenueAccountType": "RecognizedRevenue",
                            "adjustmentLiabilityAccount": "adjustL-1",
                            "adjustmentLiabilityAccountType": "AdjustmentLiability",
                            "adjustmentRevenueAccount": "adjustRev-1",
                            "adjustmentRevenueAccountType": "AdjustmentRevenue",
                            "contractAssetAccount": "CA-2",
                            "contractAssetAccountType": "ContractAsset",
                            "contractLiabilityAccount": "CL-2",
                            "contractLiabilityAccountType": "ContractLiability",
                            "contractRecognizedRevenueAccount": "Contract Recognized Revenue",
                            "contractRecognizedRevenueAccountType": "RecognizedRevenue",
                            "unbilledReceivablesAccount": "unbilledR-1",
                            "unbilledReceivablesAccountType": "UnbilledReceivables",
                            "productRatePlanChargeId": "ad95b694d2b8442b84dc8ad26561c7d7"
                          },
                          "attributes": [],
                          "billCycle": {
                            "dayOfMonth": 5,
                            "period": "bill_cycle_period_month",
                            "periodAlignment": "align_to_charge",
                            "timing": "in_advance",
                            "type": "specific_day_of_month"
                          },
                          "chargeFunction": "charge_function_standard",
                          "chargeModel": "flat_fee",
                          "chargeType": "recurring",
                          "createdById": "53c162482f054f3ca08e1ec82dccfec9",
                          "createdTime": "2025-10-13T07:46:02.375-07:00",
                          "customFields": {},
                          "discountOptions": {
                            "applyToBillingPeriodPartially": false,
                            "reflectDiscountInNetAmount": false,
                            "rollover": false,
                            "stackedDiscount": false
                          },
                          "drawdown": {},
                          "endDateCondition": "subscription_end",
                          "upToPeriodsType": "billing_periods",
                          "upToPeriods": 0,
                          "listPriceBase": "Per_Billing_Period",
                          "specificListPriceBase": 0,
                          "extendedPrice": {},
                          "id": "ad95b694d2b8442b84dc8ad26561c7d7",
                          "isChargeLevelMinCommit": false,
                          "isCommitted": false,
                          "labels": {},
                          "mergedRateCards": [],
                          "name": "Flat PRPC 1",
                          "negotiatedRateCards": [],
                          "ocmJsonByCurrency": {},
                          "organizationLabels": [],
                          "overageOptions": {
                            "includedUnits": 0,
                            "unusedUnitsCreditRates": {}
                          },
                          "prepaid": false,
                          "prepayment": {
                            "rollover": false,
                            "rolloverApply": "apply_last",
                            "rolloverPeriodLength": 0,
                            "rolloverPeriods": 0
                          },
                          "priceChangeOption": "no_change",
                          "pricing": {
                            "discountAmounts": {},
                            "discountPercentages": {},
                            "flatAmounts": {
                              "USD": 100
                            },
                            "maxAmounts": {},
                            "minAmounts": {},
                            "percentages": {},
                            "tiers": [],
                            "unitAmounts": {}
                          },
                          "pricingSummary": [],
                          "pricingWaterfalls": {},
                          "productChargeDefinitions": [],
                          "productRatePlanChargeNumber": "PRPC-00000279",
                          "productRatePlanId": "ee2d1ce1036c4dd6ae9d6945565ff7a0",
                          "prorationOption": "default_from_tenant_setting",
                          "rateCards": [],
                          "revenue": {
                            "excludeItemBillingFromRevenueAccounting": false,
                            "excludeItemBookingFromRevenueAccounting": false,
                            "legacyReporting": false,
                            "revenueRecognitionRuleName": "Recognize upon invoicing"
                          },
                          "taxable": false,
                          "triggerEvent": "contract_effective",
                          "updatedById": "53c162482f054f3ca08e1ec82dccfec9",
                          "updatedTime": "2025-10-13T07:46:02.375-07:00",
                          "useTenantDefaultForPriceChange": true
                        }
                      ],
                      "productRatePlanNumber": "PRP-00000195",
                      "startDate": "2024-01-01",
                      "state": "active",
                      "updateTime": "2025-10-13T07:46:02.314-07:00",
                      "updatedBy": "53c162482f054f3ca08e1ec82dccfec9"
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "Returned if `Accept-Encoding: gzip` is specified and the response exceeds 1000 bytes. Supported MIME types: application/json, application/xml, text/html, text/csv, text/plain.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See rate limits docs.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See rate limits docs.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to exhaustion. See rate limits docs.",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call.",
                "schema": {
                  "type": "string",
                  "minLength": 36,
                  "maxLength": 36
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "Errors": [
                        {
                          "Code": "INVALID_VALUE",
                          "Message": "The account number 123xProxy is invalid."
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "Returned if `Accept-Encoding: gzip` is specified and the response exceeds 1000 bytes. Supported MIME types: application/json, application/xml, text/html, text/csv, text/plain.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See rate limits docs.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See rate limits docs.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to exhaustion. See rate limits docs.",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "type": "string",
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ]
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call.",
                "schema": {
                  "type": "string",
                  "minLength": 36,
                  "maxLength": 36
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "tags": [
          "Commerce"
        ]
      },
      "put": {
        "summary": "Update a product rate plan",
        "description": "Updates an existing Product Rate Plan (PRP) in the Product Catalog. \nUse this API to update core plan fields such as name, description, grade, and effective dates.\n",
        "operationId": "updateProductRatePlan",
        "tags": [
          "Commerce"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePlanRequest"
              },
              "example": {
                "id": "5758b1d5a589840e0e6855e1c2ce014d",
                "name": "Bronze Plan",
                "description": "Basic version of our software service",
                "grade": 1,
                "startDate": "2025-09-10",
                "endDate": "2043-08-16"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdatePlanResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "activeCurrencies": [
                        "USD"
                      ],
                      "attributes": [],
                      "contextFilters": [],
                      "createTime": "2025-02-24T01:20:44.000+00:00",
                      "createdBy": "8a90a2fd8030ea2e018032b11d3a3f06",
                      "customFields": {},
                      "description": "Basic version of our software service",
                      "displayName": "",
                      "endDate": "2027-01-01",
                      "entitlements": [],
                      "externalIdSourceSystem": "",
                      "externalRateplanId": [],
                      "id": "38660706ef2f48cfb5222f7dde491895",
                      "name": "Bronze Plan",
                      "netsuite": {},
                      "organizationLabels": [],
                      "productId": "8a90aac8948deebf01949098b7790326",
                      "productRatePlanCharges": [
                        {
                          "id": "99e226fec45943f4b80ed7bcf6d595d7",
                          "name": "disc_currency",
                          "chargeType": "recurring",
                          "chargeModel": "discount_percentage",
                          "triggerEvent": "contract_effective",
                          "billCycle": {
                            "period": "bill_cycle_period_quarter",
                            "periodAlignment": "align_to_term_start",
                            "type": "term_start_day"
                          },
                          "pricing": {
                            "discountPercentages": {
                              "USD": 10
                            },
                            "tiers": []
                          },
                          "prepayment": {
                            "creditOption": "time_based",
                            "rollover": false,
                            "rolloverApply": "apply_last",
                            "rolloverPeriodLength": 0,
                            "rolloverPeriods": 0,
                            "validityPeriod": "subscription_term"
                          },
                          "taxMode": "non_taxable",
                          "taxable": false,
                          "createdById": "8a90a2fd8030ea2e018032b11d3a3f06",
                          "createdTime": "2025-02-24T01:21:51.000+00:00",
                          "updatedById": "8a90a2fd8030ea2e018032b11d3a3f06",
                          "updatedTime": "2025-02-24T01:21:51.000+00:00"
                        },
                        {
                          "id": "fe9b0e764dca4178a11c0e471e5dc0d8",
                          "name": "prepay_currency",
                          "chargeType": "recurring",
                          "chargeModel": "flat_fee",
                          "listPriceBase": "Per_Billing_Period",
                          "triggerEvent": "contract_effective",
                          "billCycle": {
                            "period": "bill_cycle_period_quarter",
                            "periodAlignment": "align_to_term_start",
                            "timing": "in_advance",
                            "type": "term_start_day"
                          },
                          "pricing": {
                            "flatAmounts": {
                              "USD": 30
                            },
                            "tiers": []
                          },
                          "prepayment": {
                            "creditOption": "consumption_based",
                            "operationType": "prepaid_operation_type_topup",
                            "rollover": false,
                            "rolloverApply": "apply_last",
                            "rolloverPeriodLength": 0,
                            "rolloverPeriods": 0,
                            "validityPeriod": "quarter"
                          },
                          "taxMode": "non_taxable",
                          "taxable": false,
                          "createdById": "8a90a2fd8030ea2e018032b11d3a3f06",
                          "createdTime": "2025-02-24T01:21:23.000+00:00",
                          "updatedById": "8a90a2fd8030ea2e018032b11d3a3f06",
                          "updatedTime": "2025-02-24T01:21:23.000+00:00"
                        }
                      ],
                      "productRatePlanNumber": "PRP-00000172",
                      "startDate": "2025-09-10",
                      "state": "active",
                      "status": "ACTIVE",
                      "updateTime": "2025-10-23T05:16:28.334+00:00",
                      "updatedBy": "53c162482f054f3ca08e1ec82dccfec9"
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to exhaustion.",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "description": "Request Errors or Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "schema": {
                  "type": "string"
                }
              },
              "WWW-Authenticate": {
                "schema": {
                  "type": "string"
                },
                "description": "The value of this header is:\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/commerce/plans/query": {
      "post": {
        "description": "Retrieve details of a **single** product rate plan (PRP) from the Product Catalog. You can expand associated product rate plan charges for each plan.\nThis operation is a **strict lookup** and **requires** `product_rate_plan_key`. It does **not** support `attributes` or other list-style filters.\nTo browse or filter plans (including by `attributes`), use  the \"Query product rate plans\" operation (`POST /commerce/plans/list`).\n",
        "operationId": "queryCommerceProductRatePlans",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueryChargeRequest"
              },
              "examples": {
                "byPlanIdExpandCharges": {
                  "summary": "Query a single PRP by key and expand charges",
                  "value": {
                    "product_rate_plan_key": "572a2efe711b449e80cbef94419bc050",
                    "expand": {
                      "product_rate_plan_charges": true
                    }
                  }
                },
                "byPlanKeyNoExpand": {
                  "summary": "Query a single PRP by key (no expansion)",
                  "value": {
                    "product_rate_plan_key": "11dc762a07064ce496af73ff4cfb5614"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateChargeResponse"
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Errors": [
                        {
                          "Code": "INVALID_VALUE",
                          "Message": "The account number 123xProxy is invalid."
                        }
                      ],
                      "Success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Query product rate plan details",
        "tags": [
          "Commerce"
        ]
      }
    },
    "/commerce/plans/list": {
      "post": {
        "summary": "Query product rate plans",
        "description": "Queries product rate plans (PRPs) from the Product Catalog using filters such as plan ID, name, or product ID.  \nYou can optionally expand related Product Rate Plan Charges (PRPCs) in the response.\n",
        "operationId": "queryCommercePlansList",
        "tags": [
          "Commerce"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListPlansRequest"
              },
              "example": {
                "filters": [
                  {
                    "field": "prp_id",
                    "operator": "EQ",
                    "value": "38660706ef2f48cfb5222f7dde491895"
                  }
                ],
                "expand": {
                  "product_rate_plan_charges": true
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListPlansResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "values": [
                        {
                          "id": "38660706ef2f48cfb5222f7dde491895",
                          "createdBy": "8a90a2fd8030ea2e018032b11d3a3f06",
                          "createTime": "2025-02-24T01:21:23.000+00:00",
                          "updatedBy": "8a90a2fd8030ea2e018032b11d3a3f06",
                          "updateTime": "2025-02-24T01:21:23.000+00:00",
                          "displayName": "Bronze Plan",
                          "name": "Bronze Plan",
                          "description": "Basic version of our software service",
                          "productId": "8a90aac8948deebf01949098b7790326",
                          "startDate": "2025-09-10",
                          "endDate": "2027-01-01",
                          "state": "active",
                          "status": "ACTIVE",
                          "activeCurrencies": [
                            "USD"
                          ],
                          "productRatePlanNumber": "PRP-00000172",
                          "productRatePlanCharges": [
                            {
                              "id": "fe9b0e764dca4178a11c0e471e5dc0d8",
                              "productRatePlanChargeNumber": "PRPC-00000279",
                              "name": "prepay_currency",
                              "chargeType": "recurring",
                              "chargeModel": "flat_fee",
                              "listPriceBase": "Per_Billing_Period",
                              "triggerEvent": "contract_effective",
                              "unitOfMeasure": "Each",
                              "defaultQuantity": 1,
                              "endDateCondition": "subscription_end",
                              "upToPeriodsType": "billing_periods",
                              "upToPeriods": 0,
                              "billCycle": {
                                "period": "bill_cycle_period_quarter",
                                "periodAlignment": "align_to_term_start",
                                "timing": "in_advance",
                                "type": "term_start_day"
                              },
                              "pricing": {
                                "flatAmounts": {
                                  "USD": 30
                                },
                                "tiers": []
                              },
                              "pricingSummary": [
                                "USD30"
                              ],
                              "taxMode": "non_taxable",
                              "taxable": false,
                              "createdById": "8a90a2fd8030ea2e018032b11d3a3f06",
                              "createdTime": "2025-02-24T01:21:23.000+00:00",
                              "updatedById": "8a90a2fd8030ea2e018032b11d3a3f06",
                              "updatedTime": "2025-02-24T01:21:23.000+00:00"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/commerce/products/{product_key}": {
      "post": {
        "description": "Retrieves detailed information about a specific product by its unique product number or ID. \nYou can optionally specify related objects to expand in the request body.\n",
        "operationId": "getProductByKey",
        "summary": "Retrieve a product by key",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique number or ID of the product to be retrieved.",
            "in": "path",
            "name": "product_key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expand": {
                    "type": "object",
                    "description": "Controls which related objects are expanded and included in the response.\n",
                    "properties": {
                      "productRatePlans": {
                        "type": "boolean",
                        "description": "When `true`, includes product rate plans in the response."
                      },
                      "productRatePlanCharges": {
                        "type": "boolean",
                        "description": "When `true`, includes product rate plan charges in the response."
                      },
                      "businessContextFilters": {
                        "type": "boolean",
                        "description": "When `true`, includes business context filters in the response."
                      }
                    }
                  }
                }
              },
              "examples": {
                "expand": {
                  "summary": "Expand related objects",
                  "value": {
                    "expand": {
                      "productRatePlans": true,
                      "productRatePlanCharges": true,
                      "businessContextFilters": true
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK\n",
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "7228c9e6fd814e3a9e59bcdf0117e34f",
                      "createdBy": "53c162482f054f3ca08e1ec82dccfec9",
                      "createdTime": "2025-10-13T07:44:55.000-07:00",
                      "updatedBy": "53c162482f054f3ca08e1ec82dccfec9",
                      "updatedTime": "2025-10-13T07:44:55.000-07:00",
                      "name": "New prod",
                      "description": "Example product description",
                      "productNumber": "PC-00000103",
                      "sku": "SKU-00000133",
                      "startDate": "2024-01-01",
                      "endDate": "2050-12-31",
                      "category": "base",
                      "customFields": {},
                      "customObjects": null,
                      "allowFeatureChanges": false,
                      "productRatePlans": [
                        {
                          "id": "38660706ef2f48cfb5222f7dde491895",
                          "createdBy": "53c162482f054f3ca08e1ec82dccfec9",
                          "createTime": "2025-02-24T01:21:23.000+00:00",
                          "updatedBy": "53c162482f054f3ca08e1ec82dccfec9",
                          "updateTime": "2025-02-24T01:21:23.000+00:00",
                          "name": "Bronze Plan",
                          "displayName": "Bronze Plan",
                          "description": "Basic version of our software service",
                          "productId": "7228c9e6fd814e3a9e59bcdf0117e34f",
                          "startDate": "2025-09-10",
                          "endDate": "2027-01-01",
                          "state": "active",
                          "status": "ACTIVE",
                          "activeCurrencies": [
                            "USD"
                          ],
                          "productRatePlanNumber": "PRP-00000172",
                          "productRatePlanCharges": [
                            {
                              "id": "fe9b0e764dca4178a11c0e471e5dc0d8",
                              "productRatePlanChargeNumber": "PRPC-00000279",
                              "name": "prepay_currency",
                              "description": "Prepaid recurring software fee",
                              "chargeType": "recurring",
                              "chargeModel": "flat_fee",
                              "listPriceBase": "Per_Billing_Period",
                              "specificListPriceBase": 1,
                              "triggerEvent": "contract_effective",
                              "endDateCondition": "subscription_end",
                              "upToPeriodsType": "billing_periods",
                              "upToPeriods": 1,
                              "billCycle": {
                                "period": "bill_cycle_period_quarter",
                                "periodAlignment": "align_to_term_start",
                                "timing": "in_advance",
                                "type": "term_start_day"
                              },
                              "pricing": {
                                "flatAmounts": {
                                  "USD": 30
                                },
                                "tiers": []
                              },
                              "pricingSummary": [
                                "USD30"
                              ],
                              "taxMode": "non_taxable",
                              "taxable": false,
                              "createdById": "53c162482f054f3ca08e1ec82dccfec9",
                              "createdTime": "2025-02-24T01:21:23.000+00:00",
                              "updatedById": "53c162482f054f3ca08e1ec82dccfec9",
                              "updatedTime": "2025-02-24T01:21:23.000+00:00"
                            }
                          ]
                        }
                      ],
                      "features": [],
                      "netsuite": null,
                      "organizationLabels": [],
                      "contextFilters": [],
                      "legacyFeatures": [],
                      "dacTag": {
                        "id": "1234567890abcdef",
                        "name": "Example DAC Tag"
                      },
                      "error": null
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetProductByKeyResponse"
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.",
                "schema": {
                  "type": "string",
                  "minLength": 36,
                  "maxLength": 36
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion.",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "description": "Request Errors",
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "40010020",
                          "message": "Invalid product_key"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion.",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "tags": [
          "Commerce"
        ]
      }
    },
    "/commerce/legacy/products/list": {
      "post": {
        "summary": "Query legacy products from the Product Catalog",
        "description": "This operation is functionally equivalent to the \"Query products from the Product Catalog\" operation, except that it returns results\nin the **V1 response format**. It is primarily intended for customers migrating from older V1 integrations \nwho want to use new Commerce capabilities — such as **Dynamic Pricing**—without refactoring their existing integrations.\n\n\nUnlike the \"Query products from the Product Catalog\" operation, this operation does not retrieve a different set of products.  \nIt returns the same product catalog data as the newer operation, but formatted in a flattened V1-style response structure that:\n  - Uses **flattened fields** instead of grouped objects such as `discount_options`, `revenue`, or `bill_cycle`.\n  - Retains **V1 field names** for easier migration from existing V1 operations, for example:\n    - <a href=\"https://developer.zuora.com/v1-api-reference/api/operation/GET_RetrieveProductRatePlanCharge/\" target=\"_blank\">Retrieve a product rate plan charge</a>.\n    - <a href=\"https://developer.zuora.com/v1-api-reference/api/operation/queryProductRatePlanByKey/\" target=\"_blank\">Retrieve a product rate plan</a>.\n    - <a href=\"https://developer.zuora.com/v1-api-reference/api/operation/queryProductByKey/\" target=\"_blank\">Retrieve a product</a>.\n  - Keeps certain objects, such as `netsuite` and `customFields`, as grouped structures instead of flattening them.\n\n  **Recommended Usage** \n  - Use this operation if you are migrating from V1 APIs and need to maintain compatibility with existing integrations.\n  - For new integrations, use the \"Query products from the Product Catalog\" operation instead, as it returns structured responses optimized for the **Commerce** feature.\n",
        "operationId": "queryLegacyProducts",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProductListLegacyRequest"
              },
              "examples": {
                "queryById": {
                  "summary": "Query product by ID and expand plans and charges",
                  "value": {
                    "filters": [
                      {
                        "field": "id",
                        "operator": "EQ",
                        "value": "7228c9e6fd814e3a9e59bcdf0117e34f"
                      }
                    ],
                    "expand": {
                      "product_rate_plans": true,
                      "product_rate_plan_charges": true
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful query",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateProductListLegacyResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "values": [
                        {
                          "id": "ee2d1ce1036c4dd6ae9d6945565ff7a0",
                          "name": "New prod",
                          "state": "active",
                          "effectiveStartDate": "2024-01-01",
                          "effectiveEndDate": "2050-12-31",
                          "customFields": {
                            "InexedCFTest__c": "Test1",
                            "nonidxpicklist__c": "nidx1"
                          },
                          "productRatePlans": [
                            {
                              "id": "c3a52dd029704b7e89274c9e7e8fd99c",
                              "name": "Demo Rate Plan",
                              "state": "active",
                              "activeCurrencies": [
                                "USD"
                              ],
                              "productRatePlanCharges": [
                                {
                                  "id": "ebcd93dc77b34d20912dbfae5881acff",
                                  "name": "Charge with state 2",
                                  "type": "Recurring",
                                  "model": "PerUnit",
                                  "uom": "Each",
                                  "billingPeriod": "Month",
                                  "billingTiming": "IN_ADVANCE",
                                  "listPriceBase": "Per_Billing_Period",
                                  "pricing": [
                                    {
                                      "currency": "USD",
                                      "price": 101,
                                      "tiers": []
                                    }
                                  ],
                                  "attributes": [
                                    {
                                      "name": "State",
                                      "type": "String",
                                      "mapping": {
                                        "object": "account",
                                        "field": "state__c"
                                      }
                                    },
                                    {
                                      "name": "EffectiveDate",
                                      "type": "Datetime"
                                    }
                                  ]
                                },
                                {
                                  "id": "5b8ec92e6af64e8fa2d8b9756b9fed10",
                                  "name": "Charge with state 1",
                                  "type": "Recurring",
                                  "model": "PerUnit",
                                  "uom": "Each",
                                  "billingPeriod": "Month",
                                  "billingTiming": "IN_ADVANCE",
                                  "listPriceBase": "Per_Billing_Period",
                                  "pricing": [
                                    {
                                      "currency": "USD",
                                      "price": 100,
                                      "tiers": []
                                    }
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "Errors": [
                        {
                          "Code": "INVALID_VALUE",
                          "Message": "The account number 123xProxy is invalid."
                        }
                      ],
                      "Success": false
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\nNote that only the following MIME types support gzipped responses: - `application/json` - `application/xml` - `text/html` - `text/csv` - `text/plain` ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n``` Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API ``` ",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "schema": {
                  "type": "string"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call.",
                "schema": {
                  "type": "string",
                  "minLength": 36,
                  "maxLength": 36
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "tags": [
          "Commerce"
        ]
      }
    },
    "/commerce/tiers": {
      "put": {
        "summary": "Update a product rate plan charge tier",
        "description": "Updates the price and other editable attributes, when supported, for a specific **Product Rate Plan Charge Tier**.\n",
        "operationId": "updateTier",
        "tags": [
          "Commerce"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTierRequest"
              },
              "example": {
                "id": "8fe232784e7946f9aa79cfc8aad30bd9",
                "price": 450
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateTierResponse"
                },
                "examples": {
                  "response": {
                    "value": {
                      "createdById": "190758cda21c41138233263a951580b3",
                      "createdTime": "2025-10-15T19:07:25.000+00:00",
                      "currency": "USD",
                      "endingUnit": 0,
                      "id": "8fe232784e7946f9aa79cfc8aad30bd9",
                      "isOveragePrice": false,
                      "price": 450,
                      "priceFormat": "price_format_flat_fee",
                      "startingUnit": 0,
                      "tier": "1",
                      "updatedById": "190758cda21c41138233263a951580b3",
                      "updatedTime": "2025-10-15T20:47:58.000+00:00"
                    }
                  }
                }
              }
            },
            "headers": {
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/commerce/purchase-options/list": {
      "post": {
        "description": "Retrieves one or more product rate plans (PRPs) from the Product Catalog based on specified filters such as product ID or PRP ID.\nYou can optionally expand related product rate plan charges (PRPCs) in the response.\n",
        "operationId": "queryPurchaseOptionsbyPRPID",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_rejectUnknownFields"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOptionRequest"
              },
              "examples": {
                "byPlanIdExpandCharges": {
                  "summary": "Filter by PRP ID and expand charges",
                  "value": {
                    "filters": [
                      {
                        "field": "prp_id",
                        "operator": "EQ",
                        "value": {
                          "string_value": "8a90f5088799c8ed01879cb4b47a3b1a"
                        }
                      }
                    ],
                    "expand": {
                      "product_rate_plan_charges": true
                    }
                  }
                },
                "byProductId": {
                  "summary": "Filter by Product ID",
                  "value": {
                    "filters": [
                      {
                        "field": "product_id",
                        "operator": "EQ",
                        "value": {
                          "string_value": "8a90f5088799c8ed01879cb481d83b18"
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOptionResponse"
                },
                "examples": {
                  "sampleSuccess": {
                    "summary": "Successful response with one PRP (matches the request above)",
                    "value": {
                      "error": null,
                      "productRatePlans": [
                        {
                          "description": "",
                          "endDate": "2026-04-20",
                          "id": "8a90f5088799c8ed01879cb4b47a3b1a",
                          "name": "New Rate Plan",
                          "product": {
                            "allowFeatureChanges": false,
                            "category": "base",
                            "contextFilters": [],
                            "createdTime": "2023-04-19T20:28:08.000-07:00",
                            "customFields": {
                              "prd_text_c__c": "a"
                            },
                            "customObjects": null,
                            "description": "",
                            "endDate": "2026-04-20",
                            "features": [],
                            "id": "8a90f5088799c8ed01879cb481d83b18",
                            "legacyFeatures": [],
                            "name": "ztax-product",
                            "netsuite": null,
                            "organizationLabels": [],
                            "productNumber": "PC-00000037",
                            "productRatePlans": [],
                            "sku": "SKU-00000043",
                            "startDate": "2022-04-04",
                            "state": "product_active"
                          },
                          "productId": "8a90f5088799c8ed01879cb481d83b18",
                          "productRatePlanCharges": [
                            {
                              "accounting": {
                                "accountsReceivableAccount": "Accounts Receivable",
                                "accountsReceivableAccountType": "AccountsReceivable"
                              },
                              "attributes": [],
                              "billCycle": {
                                "period": "bill_cycle_period_month",
                                "periodAlignment": "align_to_charge",
                                "timing": "in_advance",
                                "type": "default_from_customer"
                              },
                              "chargeModel": "flat_fee",
                              "chargeType": "recurring",
                              "createdById": "2c92c8fb7a2d26b6017a2eaa64c72dea",
                              "customFieldId": "3687818732",
                              "customFields": {
                                "IncludeTowardsMinimumCommitmentAmount__c": null,
                                "ProductType__c": null,
                                "TrueUpChargeLevel__c": null,
                                "TrueUpCharge__c": null,
                                "aaa__c": null
                              },
                              "deliverySchedule": {
                                "frequency": "delivery_frequency_unspecified",
                                "friday": false,
                                "monday": false,
                                "saturday": false,
                                "sunday": false,
                                "thursday": false,
                                "tuesday": false,
                                "wednesday": false
                              },
                              "description": "",
                              "discountOptions": {
                                "applyDetails": [],
                                "applyTo": [],
                                "applyToBillingPeriodPartially": false,
                                "reflectDiscountInNetAmount": false,
                                "rollover": false,
                                "stackedDiscount": false,
                                "drawdown": {},
                                "endDateCondition": "subscription_end",
                                "upToPeriodsType": "billing_periods",
                                "upToPeriods": 0,
                                "listPriceBase": "Per_Billing_Period",
                                "specificListPriceBase": 0
                              },
                              "id": "8a90876c8799b81801879cb516f8400b",
                              "name": "New Component",
                              "pricing": {
                                "adjustments": {},
                                "discountAmounts": {},
                                "discountPercentages": {},
                                "flatAmounts": {
                                  "USD": 100
                                },
                                "maxAmounts": {},
                                "metadata": {},
                                "minAmounts": {},
                                "percentages": {},
                                "tiers": [],
                                "unitAmounts": {}
                              },
                              "pricingSummary": [
                                "USD100"
                              ],
                              "revenue": {
                                "excludeItemBillingFromRevenueAccounting": false,
                                "excludeItemBookingFromRevenueAccounting": false,
                                "legacyReporting": false,
                                "revenueRecognitionCode": "USD",
                                "revenueRecognitionRuleName": "Recognize upon invoicing"
                              },
                              "taxMode": "tax_exclusive",
                              "taxable": true,
                              "triggerEvent": "contract_effective",
                              "updatedTime": "2023-04-19T20:28:46.000+00:00"
                            }
                          ],
                          "productRatePlanNumber": "PRP-00000001",
                          "startDate": "2022-04-20",
                          "state": "active"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Errors": [
                        {
                          "Code": "INVALID_VALUE",
                          "Message": "The account number 123xProxy is invalid."
                        }
                      ],
                      "Success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Query purchase options by PRP ID",
        "tags": [
          "Commerce"
        ]
      }
    },
    "/v1/accounts": {
      "post": {
        "description": "Creates a customer account with a payment method, a bill-to contact,\nand optional sold-to and ship-to contacts. Request and response field descriptions and sample code are provided. Use this operation to optionally create a subscription,\ninvoice for that subscription, and collect payment through the default payment method. The transaction is atomic; if any part fails for any reason, the entire\ntransaction is rolled back.\n \nThis operation is CORS Enabled, so you can use client-side Javascript to invoke the call.\n \n### Notes\n\n1. The account is created in active status.  \n2. If the `autoPay` field is set to `true` in the request, you must provide one of the `paymentMethod`, `creditCard`, or `hpmCreditCardPaymentMethodId`\nfield, but not multiple. The one provided becomes the default payment method\nfor this account. If the credit card information is declined or cannot be verified,\nno account is created.\n3. Customer accounts created with this call are automatically\nbe set to Auto Pay.\n4. If the `invoiceDeliveryPrefsEmail` field is not specified\nin the request, the account's email delivery preference is always automatically\nset to  `false`, no matter whether the  `workEmail`  or  `personalEmail`  field\nis specified.\n \n### Defaults for customerAcceptanceDate and serviceActivationDate\n\nDefault values for **customerAcceptanceDate** and **serviceActivationDate** are set as follows.\n\n|        | serviceActivationDate(SA) specified          | serviceActivationDate (SA) NOT specified  |\n| ------------- |:------------- | :-----|\n| customerAcceptanceDate (CA) specified| SA uses value in the request call; CA uses value in the request call| CA uses value in the request call;SA uses CE as default |\n| customerAcceptanceDate (CA) NOT specified      | SA uses value in the request call; CA uses SA as default |   SA and CA use CE as default |\n\nThis call supports a subset of the functionality of our [Create an order](https://developer.zuora.com/v1-api-reference/api/operation/POST_Order/) call. \nFor use cases where you create a subscription and a billing account at the same time, we recommend using \"Create an order\" instead of this call.\nThe Orders call has the following advantages: \n- Provides options for managing the entire subscription lifecycle from creation through to cancellation using different order actions. \n- Allows the creation or modifying of multiple subscriptions in a single order. \n- Allows a single order to combine both recurring subscription digital goods or services with order line items for physical goods.\n- Orders are treated as atomic transactions. If any part fails, the entire order, subscription, and billing account creation are rolled back.\n\nYou should use this call if you need to create a standalone billing account, and create orders, subscriptions, standalone invoices, or dynamic usage charges later.\nThere are no deprecation plans for this call and we will continue to support this call for existing users. \n",
        "operationId": "POST_Account",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTAccountType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "accountId": "8ad087d2909293cb0190964171da0999",
                      "accountNumber": "A00000214",
                      "billToContactId": "8ad087d2909293cb019096417222099b",
                      "soldToContactId": "8ad087d2909293cb01909641723e099e"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTAccountResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an account",
        "tags": [
          "Accounts"
        ]
      }
    },
    "/v1/accounts/{account-key}": {
      "delete": {
        "description": "Deletes a specific account asynchronously. \n\n**Notes and Limitations:** \n- For account deletion, the system will start a backend job to remove all transactions under the accounts and change the status of the accounts to 'Cancelled'. This backend job is asynchronous and will take some time, depending on the job size.  \n- An account cannot be deleted when the account is either the invoice owner or the subscription owner of a subscription and the subscription's invoice owner and subscription owner are two different accounts. An exception to this limitation is if the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/Billing_Settings/Define_Default_Subscription_and_Order_Settings#Enable_Force_Deletion_for_Account.3F\" target=\"_blank\">Enable Force Deletion for Account?</a> setting is set to `Yes`, you can force delete an account that is the subscription owner of a subscription while the invoice owner is a different account. Force deleting this account deletes all its subscriptions, but the relevant invoices will not be impacted.\n- An account cannot be deleted if this account has ever been involved in an Owner Transfer amendment or order action, either as the current owner or as the previous owner. \n",
        "operationId": "DELETE_Account",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Account number or account ID.",
            "in": "path",
            "name": "account-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "40288ae9600808280160081dc9c13f15",
                      "jobId": "40288ae9600808280160081db1533506",
                      "jobStatus": "Pending",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/DeleteAccountResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an account",
        "tags": [
          "Accounts"
        ]
      },
      "get": {
        "description": "Retrieves basic information about a customer account.\n\nThis operation is a quick retrieval that doesn't include the account's subscriptions, invoices, payments, or usage details. Use Get account summary to get more detailed information about an account.\n",
        "operationId": "GET_Account",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Account number or account ID.",
            "in": "path",
            "name": "account-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "basicInfo": {
                        "accountNumber": "A00000001",
                        "batch": "Batch1",
                        "communicationProfileId": "303d186840e611df817c002185d714e1",
                        "crmId": "",
                        "id": "402892c74c9193cd014c91d35b0a0132",
                        "invoiceTemplateId": null,
                        "name": "Test",
                        "notes": "",
                        "partnerAccount": false,
                        "profileNumber": "CP-00000012",
                        "salesRep": "",
                        "sequenceSetId": null,
                        "status": "Active",
                        "summaryStatementTemplateId": "ff808081298c6e5401298c7a845c007b"
                      },
                      "billToContact": {
                        "address1": "",
                        "address2": "",
                        "city": "",
                        "country": null,
                        "county": null,
                        "fax": "",
                        "firstName": "Test",
                        "homePhone": "",
                        "id": "2c9081a03c6d7b51013c6d7e46c80a17",
                        "lastName": "Test",
                        "mobilePhone": "",
                        "nickname": "",
                        "otherPhone": "",
                        "otherPhoneType": null,
                        "personalEmail": "",
                        "state": "",
                        "taxRegion": null,
                        "workEmail": "contact@example.com",
                        "workPhone": "",
                        "zipCode": ""
                      },
                      "billingAndPayment": {
                        "additionalEmailAddresses": [
                          "contact1@example.com",
                          "contact2@example.com"
                        ],
                        "autoPay": true,
                        "billCycleDay": 1,
                        "currency": "USD",
                        "defaultPaymentMethodId": "2c93808457d787030157e03220ec4fad",
                        "invoiceDeliveryPrefsEmail": true,
                        "invoiceDeliveryPrefsPrint": false,
                        "paymentMethodCascadingConsent": false,
                        "paymentGateway": "TestGateway",
                        "paymentTerm": "Net 30"
                      },
                      "einvoiceProfile": {
                        "businessCategory": "B2B",
                        "businessName": "legal business name",
                        "businessNumber": "20002039",
                        "businessNumberSchemeId": "88",
                        "enabled": true,
                        "endpointId": "8992",
                        "endpointSchemeId": "88",
                        "taxRegisterNumber": "TAX393999"
                      },
                      "metrics": {
                        "balance": 0,
                        "contractedMrr": -900,
                        "creditBalance": 0,
                        "totalInvoiceBalance": 0
                      },
                      "metricsData": [
                        {
                          "balance": 0,
                          "contractedMrr": -900,
                          "currency": "USD",
                          "reservedPaymentAmount": 900,
                          "totalDebitMemoBalance": 0,
                          "totalInvoiceBalance": 0,
                          "unappliedCreditMemoAmount": 0,
                          "unappliedPaymentAmount": 0
                        },
                        {
                          "balance": 0,
                          "contractedMrr": -900,
                          "currency": "EUR",
                          "reservedPaymentAmount": -900,
                          "totalDebitMemoBalance": 0,
                          "totalInvoiceBalance": 0,
                          "unappliedCreditMemoAmount": 0,
                          "unappliedPaymentAmount": 0
                        }
                      ],
                      "soldToContact": {
                        "address1": "",
                        "address2": "",
                        "city": "",
                        "country": null,
                        "county": null,
                        "fax": "",
                        "firstName": "Test",
                        "homePhone": "",
                        "id": "2c9081a03c6d7b51013c6d7e46cf0a18",
                        "lastName": "Test",
                        "mobilePhone": "",
                        "nickname": "",
                        "otherPhone": "",
                        "otherPhoneType": null,
                        "personalEmail": "",
                        "state": "",
                        "taxRegion": null,
                        "workEmail": "contact@example.com",
                        "workPhone": "",
                        "zipCode": ""
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETAccountType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an account",
        "tags": [
          "Accounts"
        ]
      },
      "put": {
        "description": "Updates a customer account by specifying the account-key.\n\n### Notes\n1. Only the fields to be changed should be specified.  Any field that is not included in the request body will not be changed.\n2. If an empty field is submitted with this operation, the corresponding field in the account is emptied.\n3. Email addresses: If no email addresses are specified, no change is made to the email addresses or to the email delivery preference. If either the **personalEmail** or **workEmail** of **billToContact** is specified (or both), the system updates the corresponding email address(es) and the email delivery preference is set to `true`. (In that case, emails go to the **workEmail** address, if it exists, or else the **personalEmail**.) On the other hand, if as a result of this call both of the email addresses for the account are empty, the email delivery preference is set to `false`.\n4. The Bill To, Sold To, and Ship To contacts are separate contact entities. However, if you set the `soldToSameAsBillTo` field to `true` when creating an account, the Bill To and Sold To contacts will refer to the same contact entity. As a result, updating either contact will update both. The same behavior applies to the `shipToSameAsBillTo` field and the Ship To contact. In this case, if you want to update only one of the contacts, you must create a new contact and then update the Bill To, Sold To, or Ship To contact to reference the newly created one.\n",
        "operationId": "PUT_Account",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Account number or account ID.",
            "in": "path",
            "name": "account-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTAccountType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an account",
        "tags": [
          "Accounts"
        ]
      }
    },
    "/v1/accounts/{account-key}/payment-methods": {
      "get": {
        "description": "Retrieves the payment methods of the specified customer account.\n\n**Note:** This operation also supports retrieving custom payment methods created through the [Open Payment Method](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/MB_Set_up_custom_payment_gateways_and_payment_methods) service.\n",
        "operationId": "GET_AcountPaymentMethods",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Account number or account ID.",
            "in": "path",
            "name": "account-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Indicates whether to only retrieve the default payment method of the account. The default value is `false`. If this parameter is set to `true`, only the default payment method is retrieved.",
            "in": "query",
            "name": "isDefaultOnly",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Indicates whether to only retrieve the active payment methods of the account. The default value is `false`. If this parameter is set to `true`, only the active payment methods are retrieved.",
            "in": "query",
            "name": "isActiveOnly",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "ach": [
                        {
                          "AA_PICKLIST__c": null,
                          "accountHolderInfo": {
                            "accountHolderName": null,
                            "addressLine1": "DSDFD",
                            "addressLine2": "",
                            "city": "Example City",
                            "country": "United States",
                            "email": "test@test.com",
                            "phone": "2554444",
                            "state": "Example State",
                            "zipCode": "123456"
                          },
                          "accountKey": "4028839f7ca29000017ca29c1ce8003f",
                          "bankABACode": "110000000",
                          "bankAccountName": "Test",
                          "bankAccountNumber": "********6789",
                          "bankAccountType": "Checking",
                          "bankIdentificationNumber": null,
                          "bankName": "Chase",
                          "createdBy": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2021-10-27 05:32:19",
                          "deviceSessionId": null,
                          "existingMandate": null,
                          "id": "4028839f7cc14262017cc1bca9eb0008",
                          "ipAddress": null,
                          "isDefault": false,
                          "lastFailedSaleTransactionDate": null,
                          "lastTransaction": "Approved",
                          "lastTransactionDateTime": "2021-10-27 05:32:19",
                          "lastTransactionStatus": "Approved",
                          "mandateInfo": {
                            "existingMandateStatus": null,
                            "mandateCreationDate": null,
                            "mandateId": null,
                            "mandateReason": null,
                            "mandateReceivedStatus": null,
                            "mandateStatus": null,
                            "mandateUpdateDate": null
                          },
                          "maxConsecutivePaymentFailures": null,
                          "numConsecutiveFailures": 0,
                          "paymentRetryWindow": null,
                          "status": "Active",
                          "totalNumberOfErrorPayments": 0,
                          "totalNumberOfProcessedPayments": 0,
                          "type": "ACH",
                          "updatedBy": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2021-11-10 00:50:12",
                          "useDefaultRetryRule": true
                        }
                      ],
                      "creditcard": [
                        {
                          "AA_PICKLIST__c": null,
                          "accountHolderInfo": {
                            "accountHolderName": "John Smith",
                            "addressLine1": "ABC",
                            "addressLine2": "EFT",
                            "city": "Example City",
                            "country": "United States",
                            "email": "example@google.com",
                            "phone": "86123456789",
                            "state": "Example State",
                            "zipCode": "123456"
                          },
                          "accountKey": "4028839f7ca29000017ca29c1ce8003f",
                          "bankIdentificationNumber": "411111",
                          "cardNumber": "************1111",
                          "createdBy": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2021-11-15 18:59:08",
                          "creditCardType": "Visa",
                          "deviceSessionId": null,
                          "existingMandate": null,
                          "expirationMonth": 11,
                          "expirationYear": 2027,
                          "id": "4028839f7d26a155017d26af16ef0001",
                          "identityNumber": "97370192024",
                          "ipAddress": null,
                          "isDefault": true,
                          "lastFailedSaleTransactionDate": null,
                          "lastTransaction": "Approved",
                          "lastTransactionDateTime": "2021-11-15 18:59:08",
                          "lastTransactionStatus": "Approved",
                          "mandateInfo": {
                            "mitConsentAgreementRef": null,
                            "mitConsentAgreementSrc": null,
                            "mitProfileAction": null,
                            "mitProfileAgreedOn": null,
                            "mitProfileType": null,
                            "mitTransactionId": null
                          },
                          "maxConsecutivePaymentFailures": null,
                          "numConsecutiveFailures": 0,
                          "paymentRetryWindow": null,
                          "status": "Active",
                          "totalNumberOfErrorPayments": 0,
                          "totalNumberOfProcessedPayments": 0,
                          "type": "CreditCard",
                          "updatedBy": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2021-11-15 18:59:08",
                          "useDefaultRetryRule": true
                        }
                      ],
                      "creditcardreferencetransaction": [
                        {
                          "AA_PICKLIST__c": null,
                          "accountHolderInfo": {
                            "accountHolderName": "",
                            "addressLine1": "",
                            "addressLine2": "",
                            "city": "",
                            "country": null,
                            "email": "",
                            "phone": null,
                            "state": "",
                            "zipCode": ""
                          },
                          "accountKey": "4028839f7ca29000017ca29c1ce8003f",
                          "bankIdentificationNumber": null,
                          "cardNumber": null,
                          "createdBy": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2021-11-03 22:35:59",
                          "creditCardType": "Visa",
                          "deviceSessionId": null,
                          "existingMandate": null,
                          "expirationMonth": 11,
                          "expirationYear": 2021,
                          "id": "4028839f7ce8c530017ce9725e2c0003",
                          "ipAddress": null,
                          "isDefault": false,
                          "lastFailedSaleTransactionDate": null,
                          "lastTransaction": "Approved",
                          "lastTransactionDateTime": "2021-11-03 22:35:59",
                          "lastTransactionStatus": "Approved",
                          "mandateInfo": {
                            "mitConsentAgreementRef": null,
                            "mitConsentAgreementSrc": null,
                            "mitProfileAction": null,
                            "mitProfileAgreedOn": null,
                            "mitProfileType": null,
                            "mitTransactionId": null
                          },
                          "maxConsecutivePaymentFailures": null,
                          "numConsecutiveFailures": 0,
                          "paymentRetryWindow": null,
                          "secondTokenId": "FGDSDF",
                          "status": "Active",
                          "tokenId": "ABCE",
                          "totalNumberOfErrorPayments": 0,
                          "totalNumberOfProcessedPayments": 0,
                          "type": "CreditCardReferenceTransaction",
                          "updatedBy": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2021-11-03 22:35:59",
                          "useDefaultRetryRule": true
                        }
                      ],
                      "debitcard": [
                        {
                          "AA_PICKLIST__c": null,
                          "accountHolderInfo": {
                            "accountHolderName": "John Smith",
                            "addressLine1": "1051 E Hillsdale Blvd",
                            "addressLine2": "",
                            "city": "Tynan",
                            "country": "United States",
                            "email": "smith@example.com",
                            "phone": "",
                            "state": "California",
                            "zipCode": "45101"
                          },
                          "accountKey": "4028839f7ca29000017ca29c1ce8003f",
                          "bankIdentificationNumber": "588888",
                          "cardNumber": "************8888",
                          "createdBy": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2021-11-01 00:01:52",
                          "creditCardType": "Electron",
                          "deviceSessionId": null,
                          "existingMandate": null,
                          "expirationMonth": 11,
                          "expirationYear": 2021,
                          "id": "4028839f7cd92a6b017cda4defd00006",
                          "ipAddress": null,
                          "isDefault": false,
                          "lastFailedSaleTransactionDate": null,
                          "lastTransaction": "Approved",
                          "lastTransactionDateTime": "2021-11-01 00:01:53",
                          "lastTransactionStatus": "Approved",
                          "mandateInfo": {
                            "mitConsentAgreementRef": null,
                            "mitConsentAgreementSrc": null,
                            "mitProfileAction": null,
                            "mitProfileAgreedOn": null,
                            "mitProfileType": null,
                            "mitTransactionId": null
                          },
                          "maxConsecutivePaymentFailures": null,
                          "numConsecutiveFailures": 0,
                          "paymentRetryWindow": null,
                          "status": "Active",
                          "totalNumberOfErrorPayments": 0,
                          "totalNumberOfProcessedPayments": 0,
                          "type": "CreditCard",
                          "updatedBy": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2021-11-01 00:01:52",
                          "useDefaultRetryRule": true
                        }
                      ],
                      "defaultPaymentMethodId": "4028839f7d26a155017d26af16ef0001",
                      "paymentGateway": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETAccountPaymentMethodType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List payment methods of an account",
        "tags": [
          "Accounts"
        ]
      }
    },
    "/v1/accounts/{account-key}/payment-methods/cascading": {
      "get": {
        "summary": "Retrieve configuration of cascading payment methods for an account",
        "description": "Zuora provides the Cascading Payment Method feature to dynamically retry the failed payment with alternative payment methods according to a predefined priority list. Use this API operation to retrieve the configuration information for Cascading Payment Method of a specified account, including the cascading consent value and the priority list of payment methods.\n\nBefore you use this API operation, ensure that the Cascading Payment Method feature is enabled. For more information about the Cascading Payment Method feature, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B2_Cascade_payment_methods\" target=\"_blank\">Cascade payment methods</a>.\n",
        "operationId": "GetAccountPaymentMethodCascading",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Account ID.",
            "in": "path",
            "name": "account-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "consent": true,
                      "priorities": [
                        {
                          "paymentMethodId": "2c92c0f95be68649015bf14e001f2760",
                          "order": 1
                        },
                        {
                          "paymentMethodId": "2c92c0f95be68649015bf14e001f2761",
                          "order": 2
                        },
                        {
                          "paymentMethodId": "2c92c0f95be68649015bf14e001f2762",
                          "order": 3
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetCascadingPaymentMethodsConfigurationResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "tags": [
          "Accounts"
        ]
      },
      "put": {
        "summary": "Configure cascading payment methods for an account",
        "description": "Zuora provides the Cascading Payment Method feature to dynamically retry the failed payment with alternative payment methods according to a predefined priority list. Use this API operation to configure the cascading consent for a specified account and set up the priority list of payment methods to be used in Cascading Payment Method.\n\nBefore you use this API operation, ensure that the Cascading Payment Method feature is enabled. For more information about the Cascading Payment Method feature, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B2_Cascade_payment_methods\" target=\"_blank\">Cascade payment methods</a>.\n",
        "operationId": "PutAccountPaymentMethodCascading",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Account ID.",
            "in": "path",
            "name": "account-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutCascadingPaymentMethodsConfigurationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "tags": [
          "Accounts"
        ]
      }
    },
    "/v1/accounts/{account-key}/payment-methods/default": {
      "get": {
        "description": "Retrieves the default payment method of the specified customer account.\n\n**Notes:** <ul><li>This operation also supports retrieving the custom payment method created through the [Open Payment Method](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/MB_Set_up_custom_payment_gateways_and_payment_methods) service. </li></ul> <ul><li>This operation only works with an electronic payment method and does not work with non-electronic payment methods.</li></ul> ",
        "operationId": "GET_AcountDefaultPaymentMethod",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Account number or account ID.",
            "in": "path",
            "name": "account-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "AA_PICKLIST__c": null,
                      "accountHolderInfo": {
                        "accountHolderName": "John Smith",
                        "addressLine1": "ABC",
                        "addressLine2": "EFT",
                        "city": "Example City",
                        "country": "United States",
                        "email": "example@google.com",
                        "phone": "86123456789",
                        "state": "Example State",
                        "zipCode": "844000"
                      },
                      "accountKey": "4028839f7ca29000017ca29c1ce8003f",
                      "bankIdentificationNumber": "411111",
                      "cardNumber": "************1111",
                      "createdBy": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2021-11-15 18:59:08",
                      "creditCardType": "Visa",
                      "deviceSessionId": null,
                      "existingMandate": null,
                      "expirationMonth": 11,
                      "expirationYear": 2027,
                      "id": "4028839f7d26a155017d26af16ef0001",
                      "identityNumber": "97370192024",
                      "ipAddress": null,
                      "isDefault": true,
                      "lastFailedSaleTransactionDate": null,
                      "lastTransaction": "Approved",
                      "lastTransactionDateTime": "2021-11-15 18:59:08",
                      "lastTransactionStatus": "Approved",
                      "mandateInfo": {
                        "mitConsentAgreementRef": null,
                        "mitConsentAgreementSrc": null,
                        "mitProfileAction": null,
                        "mitProfileAgreedOn": null,
                        "mitProfileType": null,
                        "mitTransactionId": null
                      },
                      "maxConsecutivePaymentFailures": null,
                      "numConsecutiveFailures": 0,
                      "paymentRetryWindow": null,
                      "status": "Active",
                      "success": true,
                      "totalNumberOfErrorPayments": 0,
                      "totalNumberOfProcessedPayments": 0,
                      "type": "CreditCard",
                      "updatedBy": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2021-11-15 18:59:08",
                      "useDefaultRetryRule": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentMethodResponseForAccount"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve the default payment method of an account",
        "tags": [
          "Accounts"
        ]
      }
    },
    "/v1/accounts/{account-key}/summary": {
      "get": {
        "description": "Retrieves detailed information about the specified customer account.\n\nThe response includes the account information and a summary of the account’s subscriptions, invoices, payments, and usages.\n\n### Notes\nReturns only the six most recent subscriptions based on the subscription updatedDate. Within those subscriptions, there may be many rate plans and many rate plan charges. These items are subject to the maximum limit on the array size. \n",
        "operationId": "GET_AccountSummary",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Account number or account ID.",
            "in": "path",
            "name": "account-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Indicate whether to exclude usage information in the response. The default value is `false`.",
            "in": "query",
            "name": "excludeUsage",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "basicInfo": {
                        "accountNumber": "A00001115",
                        "additionalEmailAddresses": [
                          "contact1@example.com",
                          "contact2@example.com"
                        ],
                        "autoPay": true,
                        "balance": 0,
                        "billCycleDay": 1,
                        "currency": "USD",
                        "defaultPaymentMethod": {
                          "creditCardExpirationMonth": 10,
                          "creditCardExpirationYear": 2020,
                          "creditCardNumber": "************1111",
                          "creditCardType": "Visa",
                          "id": "2c92c8f83dabf9cf013daef12dd303b0",
                          "paymentMethodType": "CreditCard"
                        },
                        "id": "2c92a0f9391832b10139183e277a0042",
                        "invoiceDeliveryPrefsEmail": true,
                        "invoiceDeliveryPrefsPrint": false,
                        "lastInvoiceDate": "2013-02-11",
                        "lastPaymentAmount": 150248.1,
                        "lastPaymentDate": "2013-03-27",
                        "name": "subscribeCallYan_1",
                        "partnerAccount": false,
                        "paymentMethodCascadingConsent": false,
                        "status": "Active"
                      },
                      "billToContact": {
                        "address1": "1400 Bridge Pkwy",
                        "address2": "",
                        "city": "San Jose",
                        "country": "United States",
                        "county": "",
                        "fax": "",
                        "firstName": "Cheng",
                        "id": "2c92a0f9391832b10139183e27940043",
                        "lastName": "Zou",
                        "state": "California",
                        "taxRegion": "",
                        "workEmail": "contact@example.com",
                        "workPhone": "5555551212",
                        "zipCode": "95135"
                      },
                      "invoices": [
                        {
                          "amount": 139722.1,
                          "balance": 0,
                          "dueDate": "2013-02-11",
                          "id": "2c92a0953a3fa95d013a407c10a60100",
                          "invoiceDate": "2013-02-11",
                          "invoiceNumber": "INV00000323",
                          "status": "Posted"
                        },
                        {
                          "amount": 10521,
                          "balance": 0,
                          "dueDate": "2012-08-11",
                          "id": "2c92a09739190dc60139194bcf1b0098",
                          "invoiceDate": "2012-08-11",
                          "invoiceNumber": "INV00000160",
                          "status": "Posted"
                        },
                        {
                          "amount": 10,
                          "balance": 0,
                          "dueDate": "2012-08-11",
                          "id": "2c92a09539190dbe0139190f42780012",
                          "invoiceDate": "2012-08-11",
                          "invoiceNumber": "INV00000159",
                          "status": "Posted"
                        }
                      ],
                      "payments": [
                        {
                          "effectiveDate": "2013-03-27",
                          "id": "2c92c8f83dabf9cf013daf3bfa0305a6",
                          "paidInvoices": [
                            {
                              "appliedPaymentAmount": 5,
                              "invoiceId": "2c92a09539190dbe0139190f42780012",
                              "invoiceNumber": "INV00000159"
                            },
                            {
                              "appliedPaymentAmount": 139722.1,
                              "invoiceId": "2c92a0953a3fa95d013a407c10a60100",
                              "invoiceNumber": "INV00000323"
                            },
                            {
                              "appliedPaymentAmount": 10521,
                              "invoiceId": "2c92a09739190dc60139194bcf1b0098",
                              "invoiceNumber": "INV00000160"
                            }
                          ],
                          "paymentNumber": "P-00000075",
                          "paymentType": "Electronic",
                          "status": "Processed"
                        },
                        {
                          "effectiveDate": "2012-08-11",
                          "id": "2c92a0f9391832b101391922ad5f049d",
                          "paidInvoices": [
                            {
                              "appliedPaymentAmount": 5,
                              "invoiceId": "2c92a09539190dbe0139190f42780012",
                              "invoiceNumber": "INV00000159"
                            }
                          ],
                          "paymentNumber": "P-00000056",
                          "paymentType": "Electronic",
                          "status": "Processed"
                        }
                      ],
                      "soldToContact": {
                        "address1": "278 Bridgeton Circle",
                        "address2": "",
                        "city": "San Jose",
                        "country": "United States",
                        "county": "",
                        "fax": "",
                        "firstName": "Bill",
                        "id": "2c92a0f9391832b10139183e27940043",
                        "lastName": "Cho",
                        "state": "California",
                        "taxRegion": "",
                        "workEmail": "contact@example.com",
                        "workPhone": "5555551212",
                        "zipCode": "95135"
                      },
                      "subscriptions": [
                        {
                          "autoRenew": true,
                          "id": "2c92c8f83dc4f752013dc72c24ee016d",
                          "initialTerm": 12,
                          "ratePlans": [
                            {
                              "productName": "Recurring Charge",
                              "ratePlanName": "QSF_Tier"
                            }
                          ],
                          "renewalTerm": 3,
                          "status": "Active",
                          "subscriptionNumber": "A-S00001081",
                          "subscriptionStartDate": "2013-02-01",
                          "termEndDate": "2014-02-01",
                          "termStartDate": "2013-02-01",
                          "termType": "TERMED"
                        },
                        {
                          "autoRenew": true,
                          "id": "2c92c8f83dc4f752013dc72bb85c0127",
                          "initialTerm": 12,
                          "ratePlans": [
                            {
                              "productName": "Recurring Charge",
                              "ratePlanName": "QSF_Tier"
                            }
                          ],
                          "renewalTerm": 3,
                          "status": "Active",
                          "subscriptionNumber": "A-S00001080",
                          "subscriptionStartDate": "2013-02-01",
                          "termEndDate": "2014-02-01",
                          "termStartDate": "2013-02-01",
                          "termType": "TERMED"
                        },
                        {
                          "autoRenew": false,
                          "id": "2c92c8f83dc4f752013dc723fdab00d4",
                          "initialTerm": 10,
                          "ratePlans": [
                            {
                              "productName": "Recurring Charge",
                              "ratePlanName": "QSF_Tier"
                            }
                          ],
                          "renewalTerm": 4,
                          "status": "Cancelled",
                          "subscriptionNumber": "A-S00001079",
                          "subscriptionStartDate": "2013-02-01",
                          "termEndDate": "2014-04-01",
                          "termStartDate": "2013-12-01",
                          "termType": "TERMED"
                        },
                        {
                          "autoRenew": false,
                          "id": "2c92c8f83db0b4b4013db4717ad000ec",
                          "initialTerm": 12,
                          "ratePlans": [
                            {
                              "productName": "Recurring Charge",
                              "ratePlanName": "Month_PerUnit"
                            },
                            {
                              "productName": "Recurring Charge",
                              "ratePlanName": "Month_PerUnit"
                            }
                          ],
                          "renewalTerm": 3,
                          "status": "Active",
                          "subscriptionNumber": "A-S00001076",
                          "subscriptionStartDate": "2011-02-11",
                          "termEndDate": "2012-02-11",
                          "termStartDate": "2011-02-11",
                          "termType": "TERMED"
                        },
                        {
                          "autoRenew": false,
                          "id": "2c92c8f83db0b4b4013db3ab6a4d00bc",
                          "initialTerm": 12,
                          "ratePlans": [
                            {
                              "productName": "Recurring Charge",
                              "ratePlanName": "Month_PerUnit"
                            },
                            {
                              "productName": "Recurring Charge",
                              "ratePlanName": "Month_PerUnit"
                            }
                          ],
                          "renewalTerm": 3,
                          "status": "Active",
                          "subscriptionNumber": "A-S00001075",
                          "subscriptionStartDate": "2011-02-11",
                          "termEndDate": "2012-02-11",
                          "termStartDate": "2011-02-11",
                          "termType": "TERMED"
                        },
                        {
                          "autoRenew": false,
                          "id": "2c92c8f83db0b4b4013db3aa9fbd0090",
                          "initialTerm": 12,
                          "ratePlans": [
                            {
                              "productName": "Recurring Charge",
                              "ratePlanName": "Month_PerUnit"
                            }
                          ],
                          "renewalTerm": 3,
                          "status": "Active",
                          "subscriptionNumber": "A-S00001074",
                          "subscriptionStartDate": "2011-02-11",
                          "termEndDate": "2012-02-11",
                          "termStartDate": "2011-02-11",
                          "termType": "TERMED"
                        }
                      ],
                      "success": true,
                      "usage": [
                        {
                          "quantity": 10,
                          "startDate": "2012-02",
                          "unitOfMeasure": "UOM"
                        },
                        {
                          "quantity": 10,
                          "startDate": "2012-01",
                          "unitOfMeasure": "UOM"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETAccountSummaryType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an account summary",
        "tags": [
          "Accounts"
        ]
      }
    },
    "/v1/contacts": {
      "post": {
        "description": "Creates a contact for a specified account. Each account must have at least one contact before it can be saved. You can add a maximum of 2000 contacts to an account.\n",
        "operationId": "POST_CreateContact",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTContactType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "6e767220676e6e61206776652075207570",
                      "accountNumber": "A00000001",
                      "address1": "314, Bongora",
                      "address2": "near Tech City",
                      "city": "GHY",
                      "contactDescription": "This is a description for the contact",
                      "country": "India",
                      "county": null,
                      "fax": "6174",
                      "firstName": "Kuhi",
                      "homePhone": "1234123",
                      "id": "6b65657020726f6c6c696e672021",
                      "lastName": "Das",
                      "mobilePhone": "123213",
                      "nickname": "Dorimi",
                      "otherPhone": "2314213",
                      "otherPhoneType": "Work",
                      "personalEmail": "kuhiroll@example.com",
                      "state": "Assam",
                      "success": true,
                      "taxRegion": "California",
                      "workEmail": "amy.lawrence@zuora.com",
                      "workPhone": "(888) 976-9056",
                      "zipCode": "123456"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ContactResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a contact",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/v1/contacts/{contactId}": {
      "delete": {
        "description": "Deletes a contact.\n",
        "operationId": "DELETE_Contact",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID of the contact that you want to delete.\n",
            "in": "path",
            "name": "contactId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a contact",
        "tags": [
          "Contacts"
        ]
      },
      "get": {
        "description": "Retrieves detailed information about a specific contact.\n",
        "operationId": "GET_Contact",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID of the contact that you want to retrieve.\n",
            "in": "path",
            "name": "contactId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "72756e2061726e642026206465736572742075",
                      "accountNumber": "A00000001",
                      "address1": "567, Rose Apartment",
                      "address2": "Gate no. 2",
                      "city": "Seattle",
                      "contactDescription": "This is a description",
                      "country": "United States",
                      "county": "King County",
                      "fax": "123456",
                      "firstName": "peter",
                      "homePhone": "86123456789",
                      "id": "402881a2889f2e4301889f30e64e0019",
                      "lastName": "parker",
                      "mobilePhone": "1234567890",
                      "nickname": "peet",
                      "otherPhone": "11111111111111111",
                      "otherPhoneType": "Work",
                      "personalEmail": "peet@example.com",
                      "state": "Washington",
                      "success": true,
                      "taxRegion": "CA",
                      "workEmail": "work.mail@example.com",
                      "workPhone": "3432",
                      "zipCode": "123134"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ContactResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a contact",
        "tags": [
          "Contacts"
        ]
      },
      "put": {
        "description": "Updates a contact for a specified account.\n\nYou can update contacts for cancelled accounts.\n",
        "operationId": "PUT_Contact",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID of the contact that you want to update.\n",
            "in": "path",
            "name": "contactId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTContactType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "6e767220676e6e61206d616b65207520637279",
                      "accountNumber": "A00000001",
                      "address1": "new Address",
                      "address2": "near Tech City",
                      "city": "Mumbai",
                      "contactDescription": "This is the new Description",
                      "country": "India",
                      "county": null,
                      "fax": "6174",
                      "firstName": "Kuhi",
                      "homePhone": "1234123",
                      "id": "8a90f50888a3036e0188ab7b3ffe7b8a",
                      "lastName": "Das",
                      "mobilePhone": "123213",
                      "nickname": "Dorimi",
                      "otherPhone": "2314213",
                      "otherPhoneType": "Work",
                      "personalEmail": "kuhiroll@example.com",
                      "state": "Assam",
                      "success": true,
                      "taxRegion": "California",
                      "workEmail": "amy.lawrence@zuora.com",
                      "workPhone": "(888)976-9056",
                      "zipCode": "123134"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ContactResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a contact",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/v1/contacts/{contactId}/transfer": {
      "put": {
        "description": "This operation transfers contacts of the accounts within the Customer Hierarchy when removing the account.\n",
        "operationId": "transferContent",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "The ID of the contact that you want to scrub sensitive data from.\n",
            "in": "path",
            "name": "contactId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTTransferContact"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Transfer a contact",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/v1/contacts/{contactId}/scrub": {
      "put": {
        "description": "\nScrubs the sensitive data of a specific contact. \n\nYou can use this operation to replace all sensitive data in a contact and its related contact snapshot with dummy values that will be stored in Zuora databases. \n\nAfter scrubbing a contact, it is good practice to delete it. Otherwise, it might cause errors in subsequent operations.\n\n**Note**: To use this operation, you must ensure that the \"Scrub Sensitive Data of Contact\" billing permission is enabled in your user role. Contact your tenant administrator if you want to enable this permission. See [Scrub Contacts](https://knowledgecenter.zuora.com/BC_Subscription_Management/Customer_Accounts/A_How_to_Manage_Customer_Accounts/B_Key_Contacts/Scrub_Contacts) for more information.\n",
        "operationId": "PUT_ScrubContact",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID of the contact that you want to scrub sensitive data from.\n",
            "in": "path",
            "name": "contactId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Scrub a contact",
        "tags": [
          "Contacts"
        ]
      }
    },
    "/v1/contact-snapshots/{contact-snapshot-id}": {
      "get": {
        "description": "Retrieves detailed information about the snapshot of a contact, either a bill-to contact or sold-to contact.\n",
        "operationId": "GET_ContactSnapshot",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The unique ID of the contact snapshot to be retrieved. For example, 2c92c8955bd63cc1015bd7c151af02ab.\n",
            "in": "path",
            "name": "contact-snapshot-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "address1": "4th street Custom colony",
                      "address2": "Thoraipakkam",
                      "city": "Chennai",
                      "contactId": "4028c7628741ebe3018745f2c4123514",
                      "country": "India",
                      "county": null,
                      "description": null,
                      "fax": 43212,
                      "firstName": "Pat",
                      "homePhone": 9877,
                      "id": "4028c7628741ebe3018745f2c4133515",
                      "lastName": "Parker",
                      "mobilePhone": "1234567890",
                      "nickname": "this is a nick name",
                      "otherPhone": "9876543210",
                      "otherPhoneType": "Work",
                      "personalEmail": "test123@gmail.com",
                      "postalCode": 123456,
                      "state": "TN",
                      "success": true,
                      "taxRegion": "California",
                      "workEmail": "amy.lawrence@zuora.com",
                      "workPhone": "(888)976-9056"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETContactSnapshotResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a contact snapshot",
        "tags": [
          "Contact Snapshots"
        ]
      }
    },
    "/v1/sign-up": {
      "post": {
        "description": "This call performs many actions. You can use this operation to implement\n the standard requirements for signing up a customer, such as validating the\n uniqueness of an account and limiting the number of subscriptions per account.\n Also, you can use this operation to create a subscription, generate an invoice,\n and collect payment for a new or existing customer. \n \n **Note:** You need to\n have the [Orders](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders)\n or [Orders Harmonization](https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Orders/Orders_Harmonization)\n feature enabled to use this API. For a new customer, you can perform the\n following tasks in one call. Note that you can skip creating a payment meethod\n and still get the subscription and invoice successfully created.\n * Create an account\n * Create a payment method\n * Subscribe to a product in the product catalog and create a subscription\n * Generate an invoice\n * Collect payment\n\nFor an existing customer, you can use an account identification field of an\nexternal system to specify the account. You can make [make asynchronous requests](https://developer.zuora.com/rest-api/general-concepts/async-requests/)\nwhen using the \"Sign up\" operation.\n\nThis call supports a subset of the functionality of our [Create an order](https://developer.zuora.com/v1-api-reference/api/operation/POST_Order/) call. \nWe generally recommend using \"Create an order\" instead of this call because the Orders call has the following advantages: \n- Provides options for managing the entire subscription lifecycle from creation through to cancellation using different order actions. \n- Allows the creation or modifying of multiple subscriptions in a single order. \n- Allows a single order to combine both recurring subscription digital goods or services with order line items for physical goods.\n- Orders are treated as atomic transactions. If any part fails, the entire order, subscription, and billing account creation are rolled back.\n\nThis call does have some unique abilities not supported by \"Create an order\". You should consider using this call when you need to:\n\n- Use Account UPSERT functionality by specifying a custom external identifier.\n- Limit the number of subscriptions on an account\n\nThere are no deprecation plans for this call and we will continue to support this call. \n",
        "operationId": "POST_SignUp",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Charge_Metrics_Accept"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SignUpRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028818284f5f8130184f5fe1e9011e8",
                      "accountNumber": "A00000001",
                      "invoiceId": "4028818284f5f8130184f5fe23b8120c",
                      "invoiceNumber": "INV00000001",
                      "orderNumber": "O-00000001",
                      "paidAmount": 300,
                      "paymentId": "4028818284f5f8130184f5fe24b71218",
                      "paymentNumber": "P-00000001",
                      "status": "Completed",
                      "subscriptionId": "4028818284f5f8130184f5fe214611f3",
                      "subscriptionNumber": "A-S00000001",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/SignUpResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Sign up",
        "tags": [
          "Sign Up"
        ]
      }
    },
    "/v1/orders/preview": {
      "post": {
        "description": "**Notes**:  \n - This operation is only available if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders\" target=\"_blank\">Orders</a> feature enabled. If you are an existing Zuora <a href= \"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/subscribe-and-amend\"\n target= \"_blank\">Subscribe and Amend</a> customer, we recommend you enable\n <a href= \"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders-harmonization\"\n target= \"_blank\">Orders Harmonization</a> to access the <a href= \"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders\"\n target=  \"_blank\">Orders</a> feature. With Orders, you can access both existing\n functions for subscription and billing management and the new features on Zuora Billing.  \n - The [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items)\n feature is now generally available to all Zuora customers. You need to enable\n the [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders)\n feature to access the [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items)\n feature. As of Zuora Billing Release 313 (November 2021), new customers who\n onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders)\n will have the [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items)\n feature enabled by default. \n - You cannot preview enhanced discounts and usage charges.\n - You can skip the accounting period validation to avoid backdated subscription cancellation caused order preview failure. To skip the accounting period validation, submit a request at <a href=\"https://support.zuora.com\" target=\"_blank\">Zuora Global Support</a>. \n\nRetrieves the preview of the charge metrics and invoice items of a specified order. Preview for subscriptions and order line items are both supported. This operation is only an order preview and no order is created.\n\nYou can also use this operation to preview billing for a standalone order. For more information, see <a href= \"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders/create-a-subscription-using-a-standalone-order\" target=\"_blank\">Preview billing for a standalone order</a>.\n\n#### Billing preview behavior regarding draft invoices \nBy default, the billing preview behavior regarding draft invoices is as below:\n- When you preview billing for your order and the order contains subscriptions only, the draft invoices are excluded.\n- When you preview billing for your order and the order contains order line items only, the draft invoices are included.\n- When you preview billing for an order that contains both subscriptions  order line items, the draft invoices are included for both subscriptions and order line items.\n  \nHowever, if you want to always exclude the draft invoices in billing preview, submit a request at <a href=\"https://support.zuora.com\" target=\"_blank\">Zuora Global Support</a>. \n\n#### Limits on Orders API\nThe limit of orders allowed on a subscription is 1000.\n\nThe limit of order line items allowed in an order is 100.\n\nZuora has the following limits on the Orders synchronous API to prevent performance degradation: \n- Up to 50 subscriptions are allowed in a single [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n- Up to 50 order actions are allowed in a single [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n- Up to 50 order actions are allowed on a single subscription in a [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n\nIf you have an Order that exceeds any limits of the above, Zuora recommends you use the following asynchronous API operations: \n- [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\n- [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\n- [Retrieve the status and response of a job](https://developer.zuora.com/api-references/api/operation/GET_JobStatusAndResponse)\n for checking the status of the asynchronous API operations \n\nZuora has the following limits on the Orders asynchronous API operations to prevent performance degradation:\n- Up to 300 subscriptions are allowed in a single [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\n or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\n operation call.\n- Up to 300 order actions are allowed in a single [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously) or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously) operation call.\n- Up to 300 order actions are allowed on a single subscription\\\n in a [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously) or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\n operation call.\n",
        "operationId": "POST_PreviewOrder",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Indicates whether to return aggregated invoice item summaries for each invoice.\n\nWith this parameter set to `true`, the `invoices` > `invoiceItemSummary` field is returned in the preview result. \nThe aggregated `invoiceItemSummary` field provides a forecast of the number of future invoices (`previewInvoiceSequence`), and the following information for each invoice:\n  - `subTotal`\n  - `total`\n  - `taxAmount`\n  - `discountAmount`\n  - `servicePeriodStartDate`\n  - `servicePeriodEndDate`\n",
            "name": "summarizeInvoiceItem",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTOrderPreviewRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "previewResult": {
                        "invoices": [
                          {
                            "amount": 14.99,
                            "amountWithoutTax": 14.99,
                            "taxAmount": 0,
                            "targetDate": "2024-07-31",
                            "invoiceItems": [
                              {
                                "serviceStartDate": "2024-07-01",
                                "serviceEndDate": "2024-07-31",
                                "amountWithoutTax": 14.99,
                                "taxAmount": 0,
                                "chargeDescription": "",
                                "chargeName": "Monthly Fee",
                                "chargeNumber": null,
                                "processingType": "Charge",
                                "productName": "Music Service",
                                "productRatePlanChargeId": "8ad097b4909708e001909b41bb085d38",
                                "unitPrice": 14.99,
                                "subscriptionNumber": null,
                                "orderLineItemNumber": null,
                                "additionalInfo": {
                                  "quantity": 1,
                                  "unitOfMeasure": "",
                                  "numberOfDeliveries": 0
                                }
                              }
                            ]
                          }
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PostOrderPreviewResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Preview an order",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/async/orders/preview": {
      "post": {
        "description": "**Notes:** \n- This operation is only available if you have the [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature enabled. Orders is now generally available as of Zuora Billing Release 284 (August 2020). If you are an existing Zuora <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/subscribe-and-amend\" target=\"_blank\">Subscribe and Amend</a> customer, we recommend you enable <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders-harmonization\" target=\"_blank\">Orders Harmonization</a> to access the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders\" target=\"_blank\">Orders</a> feature. With Orders, you can access both existing functions for subscription and billing management and the new features on Zuora Billing.  \n- The [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature to access the [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature enabled by default.        \n- You cannot preview enhanced discounts and usage charges.\n\nIn the case where a normal \"Preview an order\" operation call will time out, use this operation instead to preview an order asynchronously. A job will be previewing the order in the back end; the job ID will be returned for tracking the job status and result.\n\n#### Billing preview behavior regarding draft invoices\nBy default, the billing preview behavior regarding draft invoices is as below:\n* When you preview billing for your order and the order contains subscriptions only, the draft invoices are excluded.\n* When you preview billing for your order and the order contains order line items only, the draft invoices are included.\n* When you preview billing for an order that contains both subscriptions  order line items, the draft invoices are included for both subscriptions and order line items.\n\nHowever, if you want to always exclude the draft invoices in billing preview, submit a request at [Zuora Global Support](https://support.zuora.com).\n\n#### Limits on Orders API\n\nThe limit of orders allowed on a subscription is 1000.\n\nThe limit of order line items allowed in an order is 100.\n\nZuora has the following limits on the Orders synchronous API to prevent performance degradation: \n* Up to 50 subscriptions are allowed in a single [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n* Up to 50 order actions are allowed in a single [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n* Up to 50 order actions are allowed on a single subscription in a [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n\nIf you have an Order that exceeds any limits of the above, Zuora recommends you use the following asynchronous API operations:\n* [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\n* [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\n* [Retrieve the status and response of a job](https://developer.zuora.com/api-references/api/operation/GET_JobStatusAndResponse) for checking the status of the asynchronous API operations\n\nZuora has the following limits on the Orders asynchronous API operations to prevent performance degradation:\n* Up to 300 subscriptions are allowed in a single [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously) or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously) operation call.\n* Up to 300 order actions are allowed in a single [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously) or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously) operation call.\n* Up to 300 order actions are allowed on a single subscription in a [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously) or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously) operation call.\n",
        "operationId": "POST_PreviewOrderAsynchronously",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Indicates whether to return aggregated invoice item summaries for each invoice.\n\nWith this parameter set to `true`, the `invoices` > `invoiceItemSummary` field is returned in the preview result. \nThe aggregated `invoiceItemSummary` field provides a forecast of the number of future invoices (`previewInvoiceSequence`), and the following information for each invoice:\n  - `subTotal`\n  - `total`\n  - `taxAmount`\n  - `discountAmount`\n  - `servicePeriodStartDate`\n  - `servicePeriodEndDate`\n",
            "name": "summarizeInvoiceItem",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTOrderPreviewAsyncRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "jobId": "2c90a02d676688200167770ce20601b6"
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "jobId": {
                      "description": "The ID of an asynchronous job that will be returned for tracking the status and result of the job.",
                      "format": "UUID",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Accepted",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "description": "URL for accessing the job result, in the format of `/async-jobs/{jobId}`. For example, `/async-jobs/2c90a02d676688200167770ce20601b6`",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Preview an order asynchronously",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orders": {
      "get": {
        "description": "**Note:** This feature is only available if you have the [Order Metrics](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/order-delta-metrics-and-order-metrics) feature enabled. As of Zuora Billing Release 284, Orders is generally available and the Order Metrics feature is no longer available as a standalone feature. If you are an existing Subscribe and Amend customer and want Order Metrics only, you must turn on [Orders Harmonization](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders-harmonization). You can still keep the existing Subscribe and Amend API integrations to create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature to access the [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature enabled by default.        \n\nRetrieves information about all orders in your tenant. You can set the `status` query parameter to an order status to retrieve orders in that order status. If you do not set a value for this query parameter, the query parameter has a default value `all`, and orders of all statuses are returned. \nBy default, it returns the first page of the orders. \n",
        "operationId": "GET_AllOrders",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The date type to filter on. This field value can be orderDate or updatedDate. Default is orderDate.\n",
            "in": "query",
            "name": "dateFilterOption",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The result will only contain the orders with the date of dateFilterOption later than or equal to this date.\n",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "The result will only contains orders with the date of dateFilterOption earlier than or equal to this date.\n",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "The status of orders.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "cancelled",
                "completed",
                "draft",
                "executing",
                "failed",
                "pending",
                "scheduled"
              ],
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "orders": [
                        {
                          "createdBy": "2c989028622282520162235ab0f603ba",
                          "createdDate": "2018-03-14 15:12:58",
                          "currency": "USD",
                          "customFields": {
                            "order_cf_date__c": "2017-01-01"
                          },
                          "description": "This is a description for the Order.",
                          "existingAccountNumber": "accountA_Num",
                          "orderDate": "2017-03-01",
                          "orderLineItems": [
                            {
                              "UOM": null,
                              "accountingCode": null,
                              "amount": 10000,
                              "amountPerUnit": 5000,
                              "amountWithoutTax": 10000,
                              "billTargetDate": null,
                              "billTo": "2c9081a03c6d7b51013c6d7e2dfc09fa",
                              "billToSnapshotId": "4028fc8487c0a43c0187c12a91500060",
                              "customFields": {
                                "orderLineItemCF__c": "olinumber-023"
                              },
                              "description": "With Dual Stereo Microphones, HD 1080p, Black,USB connectivity for ease of use.",
                              "id": "4028fc827a0e48c1017a0e4dccc60002",
                              "invoiceGroupNumber": "N-0001",
                              "invoiceOwnerAccountId": "ff80808187ff38570187ff433cbd38ef",
                              "invoiceOwnerAccountName": "AC_AC_16836148090011683614809001",
                              "invoiceOwnerAccountNumber": "AN_1683614809001",
                              "itemName": "webcam",
                              "itemNumber": "1",
                              "itemState": "Executing",
                              "itemType": "Product",
                              "listPrice": 118,
                              "listPricePerUnit": 59,
                              "orderId": "4028fc827a0e48c1017a0e58b9330014",
                              "ownerAccountId": "ff80808187ff38570187ff433f974203",
                              "ownerAccountName": "AC_AC_16836148099861683614809986",
                              "ownerAccountNumber": "AN_1683614809986",
                              "productCode": "C9201",
                              "productRatePlanChargeId": null,
                              "purchaseOrderNumber": "960-000764",
                              "quantity": 2,
                              "soldTo": "4028fc828244a0ac018244dfc9a90bee",
                              "soldToSnapshotId": "4028fc828244a0ac018244dfc9b00bf0",
                              "transactionEndDate": "2021-02-01",
                              "transactionStartDate": "2021-02-01"
                            }
                          ],
                          "orderNumber": "O-00000002",
                          "status": "Completed",
                          "subscriptions": [
                            {
                              "baseVersion": 1,
                              "customFields": {
                                "sub_cf_picklist__c": null
                              },
                              "newVersion": 2,
                              "orderActions": [
                                {
                                  "customFields": {
                                    "oa_cf_text__c": null
                                  },
                                  "sequence": 0,
                                  "triggerDates": [
                                    {
                                      "name": "ContractEffective",
                                      "triggerDate": "2017-03-01"
                                    },
                                    {
                                      "name": "ServiceActivation",
                                      "triggerDate": "2017-03-01"
                                    },
                                    {
                                      "name": "CustomerAcceptance",
                                      "triggerDate": "2017-03-01"
                                    }
                                  ],
                                  "type": "UpdateProduct",
                                  "updateProduct": {
                                    "chargeUpdates": [
                                      {
                                        "billing": {
                                          "billingPeriodAlignment": null
                                        },
                                        "chargeNumber": "C-00000001",
                                        "customFields": {
                                          "srpc_cf_picklist__c": null
                                        },
                                        "description": null,
                                        "effectiveDate": {
                                          "specificTriggerDate": null
                                        },
                                        "newRatePlanChargeId": "2c989028622282520162235adabc0651",
                                        "pricing": {
                                          "recurringVolume": {
                                            "priceChangeOption": null,
                                            "priceIncreasePercentage": null,
                                            "quantity": 7,
                                            "tiers": []
                                          }
                                        },
                                        "uniqueToken": null
                                      }
                                    ],
                                    "customFields": {},
                                    "newRatePlanId": "2c989028622282520162235ada870649",
                                    "ratePlanId": "2c989028622282520162235acd1b05d2",
                                    "specificUpdateDate": null,
                                    "uniqueToken": null
                                  }
                                }
                              ],
                              "subscriptionNumber": "A-S00000001"
                            }
                          ],
                          "updatedBy": "2c989028622282520162235ab0f603ba",
                          "updatedDate": "2018-03-14 15:12:58"
                        },
                        {
                          "createdBy": "2c989028622282520162235ab0f603ba",
                          "createdDate": "2018-03-14 15:12:55",
                          "currency": "USD",
                          "existingAccountNumber": "accountA_Num",
                          "orderDate": "2017-01-01",
                          "orderNumber": "O-00000001",
                          "status": "Completed",
                          "subscriptions": [
                            {
                              "baseVersion": null,
                              "customFields": {
                                "sub_cf_picklist__c": "sub123"
                              },
                              "newVersion": 1,
                              "orderActions": [
                                {
                                  "createSubscription": {
                                    "invoiceSeparately": null,
                                    "invoiceGroupNumber": "N-0001",
                                    "notes": null,
                                    "subscribeToRatePlans": [
                                      {
                                        "chargeOverrides": [
                                          {
                                            "billing": {
                                              "billCycleDay": 1,
                                              "billCycleType": null,
                                              "billingPeriod": null,
                                              "billingPeriodAlignment": null,
                                              "billingTiming": null,
                                              "specificBillingPeriod": null,
                                              "weeklyBillCycleDay": null
                                            },
                                            "chargeNumber": "C-00000001",
                                            "customFields": {
                                              "srpc_cf_picklist__c": null
                                            },
                                            "description": null,
                                            "endDate": {
                                              "endDateCondition": null,
                                              "specificEndDate": null,
                                              "upToPeriods": null,
                                              "upToPeriodsType": null
                                            },
                                            "pricing": {
                                              "recurringVolume": {
                                                "listPriceBase": "Per_Billing_Period",
                                                "priceChangeOption": null,
                                                "priceIncreasePercentage": null,
                                                "quantity": 12,
                                                "tiers": []
                                              }
                                            },
                                            "productRateplanChargeId": "2c989028622282520162235aca7a05b9",
                                            "startDate": {
                                              "specificTriggerDate": null
                                            },
                                            "uniqueToken": null
                                          }
                                        ],
                                        "customFields": {},
                                        "newRatePlanId": "2c989028622282520162235acd1b05d2",
                                        "productRatePlanId": "2c989028622282520162235ac91605b3",
                                        "uniqueToken": null
                                      }
                                    ],
                                    "subscriptionOwnerAccountNumber": "accountA_Num",
                                    "terms": {
                                      "autoRenew": false,
                                      "initialTerm": {
                                        "period": 12,
                                        "periodType": "Month",
                                        "startDate": "2017-01-01",
                                        "termType": "TERMED"
                                      },
                                      "renewalSetting": "RENEW_WITH_SPECIFIC_TERM",
                                      "renewalTerms": [
                                        {
                                          "period": 0,
                                          "periodType": "Month"
                                        }
                                      ]
                                    }
                                  },
                                  "customFields": {
                                    "order_cf_date__c": "2017-01-01"
                                  },
                                  "sequence": 0,
                                  "triggerDates": [
                                    {
                                      "name": "ContractEffective",
                                      "triggerDate": "2017-01-01"
                                    },
                                    {
                                      "name": "ServiceActivation",
                                      "triggerDate": "2017-01-01"
                                    },
                                    {
                                      "name": "CustomerAcceptance",
                                      "triggerDate": "2017-01-01"
                                    }
                                  ],
                                  "type": "CreateSubscription"
                                }
                              ],
                              "subscriptionNumber": "A-S00000001"
                            }
                          ],
                          "success": true,
                          "updatedBy": "2c989028622282520162235ab0f603ba",
                          "updatedDate": "2018-03-14 15:12:55"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetAllOrdersResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List orders",
        "tags": [
          "Orders"
        ]
      },
      "post": {
        "description": "**Note:** This operation is only available if you have the [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature enabled. If you are an existing Zuora <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/subscribe-and-amend\" target=\"_blank\">Subscribe and Amend</a> customer, we recommend you enable <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders-harmonization\" target=\"_blank\">Orders Harmonization</a> to access the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders\" target=\"_blank\">Orders</a> feature. With Orders, you can access both existing functions for subscription and billing management and the   new features on Zuora Billing.\n\n**Note:** The [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature to access the [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature enabled by default.       \n\nYou can use this operation to create subscriptions and make changes to subscriptions by creating orders. You can also use this operation to create order line items by creating orders. The following tutorials demonstrate how to use this operation:\n\n * [Create a Subscription](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/subscribe-and-amend/create-subscriptions/creating-a-subscription)\n * [Add a Product to a Subscription](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/order-actions-tutorials/add-products-to-subscriptions)\n * [Create a Ramp Deal](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/ramps-and-ramp-metrics/product-mid-interval-updates-on-ramp-deals-addition)\n * [Add a Product Mid-Interval Update on a Ramp Deal](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/ramps-and-ramp-metrics/product-mid-interval-updates-on-ramp-deals-addition)\n * [Add a Product in a Ramp Deal](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/ramps-and-ramp-metrics/products-addition-in-ramp-deals)\n * [Change the Terms and Conditions of a Ramp Deal](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/ramps-and-ramp-metrics/terms-and-conditions-of-ramp-deals-changes)\n * [Change the Owner of a Subscription](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/order-actions-tutorials/owners-of-subscriptions-changes)\n * [Change the Terms and Conditions of a Subscription](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/subscribe-and-amend/amend-subscriptions/terms-and-conditions-of-subscriptions/change-the-terms-and-conditions-of-a-subscription)\n * [Renew a Subscription](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/subscribe-and-amend/amend-subscriptions/subscriptions-renewal)\n * [Renew a Subscription and Upgrade a Product](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/order-actions-tutorials/subscriptions-and-upgrade-products-renewal)\n * [Replace a Product in a Subscription](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/order-actions-tutorials/replace-products-in-subscriptions)\n * [Update a Product in a Subscription](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/subscribe-and-amend/amend-subscriptions/products-updation-to-an-amendment/update-a-product-in-an-existing-subscription)\n * [Cancel a Subscription](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/order-actions-tutorials/subscriptions-cancelation)\n * [Remove a Product from a Subscription](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/order-actions-tutorials/remove-products-from-subscriptions)\n * [Create sales order line items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items/sales-order-line-items-creation)\n * [Associate order line items with new subscriptions](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items/associate-order-line-items-with-subscriptions)\n * [Return order line items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items/order-line-items-return)\n\nYou can also use this operation to create orders and save the orders as <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/scheduled-orders\" target=\"_blank\">Scheduled Orders</a>.\n\nIn addition, you can use this operation to place a standalone order to subscribe without pre-defining a product catalog in Zuora Billing. For more information, see <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/overview-of-standalone-orders/create-a-subscription-using-a-standalone-order\" target=\"_blank\">Create a subscription using a standalone order</a>. \n\n**Note:** If you received a timeout error message when creating an order, the call is still running in the backend and the order will be created.\n\nThe limit of orders allowed on a subscription is 1000.\n\nThe limit of order line items allowed in an order is 100.\n\nZuora has the following limits on the Orders synchronous API to prevent performance degradation: \n* Up to 50 subscriptions are allowed in a single [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n* Up to 50 order actions are allowed in a single [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n* Up to 50 order actions are allowed on a single subscription in a [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n\nIf you have an Order that exceeds any limits of the above, Zuora recommends you use the following asynchronous API operations:\n* [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\n* [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\n* [Retrieve the status and response of a job](https://developer.zuora.com/api-references/api/operation/GET_JobStatusAndResponse) for checking the status of the asynchronous API operations\n\nZuora has the following limits on the Orders asynchronous API operations to prevent performance degradation:\n* Up to 300 subscriptions are allowed in a single [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously) or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously) operation call.\n* Up to 300 order actions are allowed in a single [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously) or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously) operation call.\n* Up to 300 order actions are allowed on a single subscription in a [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously) or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously) operation call.\n\n\n**Note:** When you are to suspend a subcription (via the `suspend` order action), if in the same \"Create an order\" call you are to perform other subsequent order actions on the supscription to suspend, you must first resume the subscription (via a `resume` order action). \n\n**Note:** When using this operation to create an account, create a subscription, run billing, and collect payment in a single call, if any error occurs during the call, such as a payment processing failure and a tax engine failure, then all the other steps will be rolled back. This means that the invoice will not be generated, the subscription will not be created, and the account will not be created.\n\n  **Note:** The characters `#`, `?`, and `/` are not allowed in the Orders operations.",
        "operationId": "POST_Order",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Specify whether to return IDs associated with the numbers returned in the \"Create an order\" operation.\n",
            "in": "query",
            "name": "returnIds",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTOrderRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "orderNumber": "O-00000354",
                      "accountNumber": "A00000097",
                      "status": "Completed",
                      "subscriptions": [
                        {
                          "subscriptionNumber": "A-S00000129",
                          "subscriptionOwnerId": "2c92c0f87270a5970172747e289a5e66",
                          "subscriptionOwnerNumber": "A00000001",
                          "status": "Active"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PostOrderResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an order",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/async/orders": {
      "post": {
        "description": "**Note:** This operation is only available if you have the [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature enabled. If you are an existing Zuora <a href=\"ttps://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/subscribe-and-amend\" target=\"_blank\">Subscribe and Amend</a> customer, we recommend you enable <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders-harmonization\" target=\"_blank\">Orders Harmonization</a> to access the <a href=\"https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders\" target=\"_blank\">Orders</a> feature. With Orders, you can access both existing functions for subscription and billing management and the new features on Zuora Billing.\n\n**Note:** The [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature to access the [Order Line Items](ttps://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-non-subscription-transactions/order-line-items) feature enabled by default.      \n\nIn the case where a normal \"Create an order\" operation call will time out, use this operation instead to create an order asynchronously. A job will be creating the order in the back end; the job ID will be returned for tracking the job status and result. \n\nNote that this operation doesn't support auto-refund and invoice write-off during subscription cancellation. Use the \"Create an order\" operation instead.\n\nThe limit of orders allowed on a subscription is 1000.\n\nThe limit of order line items allowed in an order is 100.\n\nZuora has the following limits on the Orders synchronous API to prevent performance degradation: \n* Up to 50 subscriptions are allowed in a single [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n* Up to 50 order actions are allowed in a single [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n* Up to 50 order actions are allowed on a single subscription in a [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order) or [Preview an order](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrder) operation call.\n\nIf you have an Order that exceeds any limits of the above, Zuora recommends you use the following asynchronous API operations:\n* [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously)\n* [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously)\n* [Retrieve the status and response of a job](https://developer.zuora.com/api-references/api/operation/GET_JobStatusAndResponse) for checking the status of the asynchronous API operations\n\nZuora has the following limits on the Orders asynchronous API operations to prevent performance degradation:\n* Up to 300 subscriptions are allowed in a single [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously) or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously) operation call.\n* Up to 300 order actions are allowed in a single [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously) or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously) operation call.\n* Up to 300 order actions are allowed on a single subscription in a [Create an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_CreateOrderAsynchronously) or [Preview an order asynchronously](https://developer.zuora.com/api-references/api/operation/POST_PreviewOrderAsynchronously) operation call.\n",
        "operationId": "POST_CreateOrderAsynchronously",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Specify whether to return IDs for the [Get job status and response](https://developer.zuora.com/api-references/api/operation/GET_JobStatusAndResponse) operation. If you set this query parameter to `true`, the corresponding IDs, which are associated with the numbers returned in this operation, can be returned in the \"Get job status and response\" response body.\n",
            "in": "query",
            "name": "returnIds",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTOrderAsyncRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "jobId": "1bc24f315d7b48d3a20245bfe73bdceb",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "jobId": {
                      "description": "The ID of an asynchronous job that will be returned for tracking the status and result of the job.",
                      "format": "UUID",
                      "type": "string"
                    },
                    "success": {
                      "description": "Indicates whether the operation call succeeded.",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Accepted",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "Location": {
                "description": "URL for accessing the job result, in the format of `/async-jobs/{jobId}`. For example, `/async-jobs/1bc24f315d7b48d3a20245bfe73bdceb`",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Create an order asynchronously",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orders/{orderNumber}": {
      "delete": {
        "description": "**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled. If you are an existing Zuora <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Subscribe_and_Amend\" target=\"_blank\">Subscribe and Amend</a> customer, we recommend you enable <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\" target=\"_blank\">Orders Harmonization</a> to access the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\" target=\"_blank\">Orders</a> feature. With Orders, you can access both existing functions for subscription and billing management and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/P_FAQ_about_Orders_Harmonization#New+features+through+Orders\" target=\"_blank\">new features</a> on Zuora Billing.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default.        \n\nDeletes a specified order. \n\n* All the subscriptions changed by this order are deleted. After the deletion, the subscriptions are rolled back to the previous version. \n\n* All the order line items created in this order are deleted.\n\nYou are not allowed to delete an order in the following situations:\n - The charges that are affected by this order are invoiced.\n - The order is reverted and in the `Reverted` status.\n",
        "operationId": "DELETE_Order",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The number of the order to be deleted.",
            "in": "path",
            "name": "orderNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an order",
        "tags": [
          "Orders"
        ]
      },
      "get": {
        "description": "**Note:** This feature is only available if you have the [Order Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics) feature enabled. As of Zuora Billing Release 284, Orders is generally available and the Order Metrics feature is no longer available as a standalone feature. If you are an existing Subscribe and Amend customer and want Order Metrics only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization). You can still keep the existing Subscribe and Amend API integrations to create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default.       \n\nRetrieves the detailed information about a specified order.\n",
        "operationId": "GET_Order",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The order number to be retrieved.",
            "in": "path",
            "name": "orderNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "description": "Retrieves the invoice owner account details and subscription owner account details in the Order.",
            "in": "query",
            "name": "getAccountDetails",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "order": {
                        "createdBy": "402881e522cf4f9b0122cf5d82860002",
                        "createdDate": "2018-12-13 17:21:43",
                        "currency": "USD",
                        "customFields": {},
                        "description": "This is a description for the Order.",
                        "existingAccountNumber": "A00000101",
                        "existingAccountDetails": {
                          "basicInfo": {
                            "accountNumber": "A00000001",
                            "batch": "Batch1",
                            "communicationProfileId": "303d186840e611df817c002185d714e1",
                            "crmId": "",
                            "id": "402892c74c9193cd014c91d35b0a0132",
                            "invoiceTemplateId": null,
                            "name": "Test",
                            "notes": "",
                            "partnerAccount": false,
                            "profileNumber": "CP-00000012",
                            "salesRep": "",
                            "sequenceSetId": null,
                            "status": "Active",
                            "summaryStatementTemplateId": null,
                            "purchaseOrderNumber": ""
                          },
                          "billToContact": {
                            "address1": "",
                            "address2": "",
                            "city": "",
                            "country": null,
                            "county": null,
                            "fax": "",
                            "firstName": "Test",
                            "homePhone": "",
                            "id": "2c9081a03c6d7b51013c6d7e46c80a17",
                            "lastName": "Test",
                            "mobilePhone": "",
                            "nickname": "",
                            "otherPhone": "",
                            "otherPhoneType": null,
                            "personalEmail": "",
                            "state": "",
                            "taxRegion": null,
                            "workEmail": "contact@example.com",
                            "workPhone": "",
                            "zipCode": ""
                          }
                        },
                        "invoiceScheduleId": "ec6f0d5dc8af451ab95343fb3c588c1a",
                        "orderDate": "2018-10-01",
                        "orderLineItems": [
                          {
                            "UOM": "Unit",
                            "accountingCode": "Revenue",
                            "amount": 10000,
                            "amountPerUnit": 5000,
                            "amountWithoutTax": 10000,
                            "billTargetDate": "2025-12-01",
                            "billTo": "2c9081a03c6d7b51013c6d7e2dfc09fa",
                            "billToSnapshotId": "4028fc8487c0a43c0187c12a91500060",
                            "customFields": {
                              "orderLineItemCF__c": "olinumber-023"
                            },
                            "description": "With Dual Stereo Microphones, HD 1080p, Black,USB connectivity for ease of use.",
                            "id": "4028fc827a0e48c1017a0e4dccc60002",
                            "invoiceGroupNumber": "N-0001",
                            "invoiceOwnerAccountId": "ff80808187ff38570187ff433cbd38ef",
                            "invoiceOwnerAccountName": "AC_AC_16836148090011683614809001",
                            "invoiceOwnerAccountNumber": "AN_1683614809001",
                            "itemName": "webcam",
                            "itemNumber": "1",
                            "itemState": "Executing",
                            "itemType": "Product",
                            "listPrice": 118,
                            "listPricePerUnit": 59,
                            "orderId": "4028fc827a0e48c1017a0e58b9330014",
                            "ownerAccountId": "ff80808187ff38570187ff433f974203",
                            "ownerAccountName": "AC_AC_16836148099861683614809986",
                            "ownerAccountNumber": "AN_1683614809986",
                            "productCode": "C9201",
                            "productRatePlanChargeId": null,
                            "purchaseOrderNumber": "960-000764",
                            "quantity": 2,
                            "soldTo": "4028fc828244a0ac018244dfc9a90bee",
                            "soldToSnapshotId": "4028fc828244a0ac018244dfc9b00bf0",
                            "transactionEndDate": "2021-02-01",
                            "transactionStartDate": "2021-02-01"
                          }
                        ],
                        "orderNumber": "O-00000282",
                        "status": "Completed",
                        "subscriptions": [
                          {
                            "baseVersion": 1,
                            "customFields": {},
                            "externallyManagedBy": null,
                            "newVersion": 2,
                            "orderActions": [
                              {
                                "customFields": {},
                                "sequence": 0,
                                "triggerDates": [
                                  {
                                    "name": "ContractEffective",
                                    "triggerDate": "2018-12-01"
                                  },
                                  {
                                    "name": "ServiceActivation",
                                    "triggerDate": "2018-12-01"
                                  },
                                  {
                                    "name": "CustomerAcceptance",
                                    "triggerDate": "2018-12-01"
                                  }
                                ],
                                "type": "UpdateProduct",
                                "updateProduct": {
                                  "chargeUpdates": [
                                    {
                                      "billing": {
                                        "billingPeriodAlignment": "AlignToCharge"
                                      },
                                      "chargeNumber": "C-00000210",
                                      "customFields": {},
                                      "description": "New description",
                                      "effectiveDate": {
                                        "specificTriggerDate": "2025-12-01"
                                      },
                                      "newRatePlanChargeId": "2c98919c67a5ae9d0167a6df304b0372",
                                      "pricing": {
                                        "recurringPerUnit": {
                                          "listPrice": 20,
                                          "priceChangeOption": "NoChange",
                                          "priceIncreasePercentage": 0,
                                          "quantity": 12
                                        }
                                      },
                                      "uniqueToken": "TestUniqueToken1234"
                                    }
                                  ],
                                  "customFields": {},
                                  "newRatePlanId": "2c98919c67a5ae9d0167a6df3011036e",
                                  "ratePlanId": "2c98919c67a5ae9d0167a68f8eb20262",
                                  "specificUpdateDate": "2025-11-07",
                                  "uniqueToken": "TestUniqueToken1234"
                                }
                              }
                            ],
                            "subscriptionNumber": "A-S00000100",
                            "subscriptionOwnerAccountNumber": "A00000001",
                            "subscriptionOwnerAccountDetails": {
                              "accountNumber": "A00000001",
                              "batch": "Batch1",
                              "communicationProfileId": "303d186840e611df817c002185d714e1",
                              "crmId": "",
                              "id": "402892c74c9193cd014c91d35b0a0132",
                              "invoiceTemplateId": null,
                              "name": "Test",
                              "notes": "",
                              "partnerAccount": false,
                              "profileNumber": "CP-00000012",
                              "salesRep": "",
                              "sequenceSetId": null,
                              "status": "Active",
                              "summaryStatementTemplateId": null,
                              "purchaseOrderNumber": "",
                              "billToContact": {
                                "address1": "",
                                "address2": "",
                                "city": "",
                                "country": null,
                                "county": null,
                                "fax": "",
                                "firstName": "Test",
                                "homePhone": "",
                                "id": "2c9081a03c6d7b51013c6d7e46c80a17",
                                "lastName": "Test",
                                "mobilePhone": "",
                                "nickname": "",
                                "otherPhone": "",
                                "otherPhoneType": null,
                                "personalEmail": "",
                                "state": "",
                                "taxRegion": null,
                                "workEmail": "contact@example.com",
                                "workPhone": "",
                                "zipCode": ""
                              }
                            }
                          },
                          {
                            "baseVersion": 2,
                            "customFields": {},
                            "externallyManagedBy": "Google",
                            "newVersion": 3,
                            "orderActions": [
                              {
                                "customFields": {},
                                "resume": {
                                  "extendsTerm": true,
                                  "resumeDate": "2018-12-23",
                                  "resumePeriods": 10,
                                  "resumePeriodsType": "Day",
                                  "resumePolicy": "FixedPeriodsFromSuspendDate",
                                  "resumeSpecificDate": null
                                },
                                "sequence": 0,
                                "triggerDates": [
                                  {
                                    "name": "ContractEffective",
                                    "triggerDate": "2018-12-12"
                                  },
                                  {
                                    "name": "ServiceActivation",
                                    "triggerDate": "2018-12-12"
                                  },
                                  {
                                    "name": "CustomerAcceptance",
                                    "triggerDate": "2018-12-12"
                                  }
                                ],
                                "type": "Resume"
                              },
                              {
                                "customFields": {},
                                "sequence": 1,
                                "termsAndConditions": {
                                  "autoRenew": true,
                                  "invoiceGroupNumber": "N-0001",
                                  "clearingExistingInvoiceGroupNumber": false,
                                  "initialTerm": {
                                    "period": 375,
                                    "periodType": "Day",
                                    "startDate": "2025-12-01",
                                    "termType": "TERMED"
                                  },
                                  "renewalSetting": "RENEW_WITH_SPECIFIC_TERM",
                                  "renewalTerms": [
                                    {
                                      "period": 3,
                                      "periodType": "Month"
                                    }
                                  ]
                                },
                                "triggerDates": [
                                  {
                                    "name": "ContractEffective",
                                    "triggerDate": "2018-12-12"
                                  },
                                  {
                                    "name": "ServiceActivation",
                                    "triggerDate": "2018-12-12"
                                  },
                                  {
                                    "name": "CustomerAcceptance",
                                    "triggerDate": "2018-12-12"
                                  }
                                ],
                                "type": "TermsAndConditions"
                              }
                            ],
                            "subscriptionNumber": "A-S00000102",
                            "subscriptionOwnerAccountNumber": "A00000001"
                          }
                        ],
                        "updatedBy": "402881e522cf4f9b0122cf5d82860002",
                        "updatedDate": "2018-12-13 17:21:45"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetOrderResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an order",
        "tags": [
          "Orders"
        ]
      },
      "put": {
        "description": "**Notes:** \n- This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled. If you are an existing Zuora <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Subscribe_and_Amend\" target=\"_blank\">Subscribe and Amend</a> customer, we recommend you enable <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\" target=\"_blank\">Orders Harmonization</a> to access the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\" target=\"_blank\">Orders</a> feature. With Orders, you can access both existing functions for subscription and billing management and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/P_FAQ_about_Orders_Harmonization#New+features+through+Orders\" target=\"_blank\">new features</a> on Zuora Billing.\n- Update an order is only valid for draft or scheduled orders.\n- This operation doesn't support auto-refund and invoice write-off during subscription cancellation. Use the \"Create an order\" operation instead.\n- You must provide full payload when using the \"Update an order\" operation. That is, if you want to edit one order action, you need to provide all other order actions in the payload. Otherwise, the other order actions will be removed.\n",
        "operationId": "PUT_Order",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Order number of a order in which you are to update.",
            "in": "path",
            "name": "orderNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTOrderRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "orderNumber": "O-00000758",
                      "accountNumber": "A00000097",
                      "status": "Draft"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PutOrderResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an order",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/async/orders/{orderNumber}": {
      "delete": {
        "description": "**Note:** This operation is only available if you have the <a href= \"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\"\ntarget= \"_blank\">Orders</a> feature enabled. If you are an existing Zuora <a href= \"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Subscribe_and_Amend\" target= \"_blank\">Subscribe and Amend</a> customer, we recommend you enable \n<a href= \"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\"\ntarget= \"_blank\">Orders Harmonization</a> to access the <a href= \"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\"\ntarget= \"_blank\">Orders</a> feature. With Orders, you can access both existing\\\nfunctions for subscription and billing management and the <a href= \"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/P_FAQ_about_Orders_Harmonization#New+features+through+Orders\"\ntarget= \"_blank\">new features</a> on Zuora Billing.\n**Note:** The <a href= \"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\"\ntarget= \"_blank\">Order Line Items</a>\nfeature is now generally available to all Zuora customers. You need to enable\nthe <a href= \"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\"\ntarget= \"_blank\">Orders</a>\nfeature to access the <a href= \"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\"\ntarget= \"_blank\">Order Line Items</a>\nfeature. As of Zuora Billing Release 313 (November 2021), new customers who\\\nonboard on <a href= \"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\"\ntarget= \"_blank\">Orders</a>\nwill have the <a href= \"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\"\ntarget= \"_blank\">Order Line Items</a> feature enabled by default. \nDeletes a specified order. \nAll the subscriptions changed by this order are deleted. After the deletion, the subscriptions are rolled back to the previous version. \nAll the order line items created in this order are deleted.\nYou are not allowed to delete an order in the following situations:\n  - The charges that are affected by this order are invoiced.\n  - The order is reverted and in the `Reverted` status.\n",
        "operationId": "deleteOrderAsynchronously",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The number of the order to be deleted.",
            "in": "path",
            "name": "orderNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "jobId": "2c90a02d676688200167770ce20601b6",
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/DeleteOrderAsyncResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header. ",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header. ",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "30591668A6FFCE5C",
                  "reasons": [
                    {
                      "code": "51001122",
                      "message": "'billToContact' may not be null"
                    },
                    {
                      "code": "51000030",
                      "message": "If 'billingCycleDay' is absent, 'subscription.contractEffectiveDate' is necessary"
                    }
                  ],
                  "success": false
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Delete an order asynchronously",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/async-jobs/{jobId}": {
      "get": {
        "description": "**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled. If you are an existing Zuora <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Subscribe_and_Amend\" target=\"_blank\">Subscribe and Amend</a> customer, we recommend you enable <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\" target=\"_blank\">Orders Harmonization</a> to access the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\" target=\"_blank\">Orders</a> feature. With Orders, you can access both existing functions for subscription and billing management and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/P_FAQ_about_Orders_Harmonization#New+features+through+Orders\" target=\"_blank\">new features</a> on Zuora Billing.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default.       \n\nGet the status and response of an asynchronous job. Currently, an asynchronous job created by \"Create an order asynchronously\" or \"Preview an order asynchronously\" is supported.\n",
        "operationId": "GET_JobStatusAndResponse",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "UUID of the asynchronous job created by an asynchronous API operation.",
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "format": "UUID",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "errors": null,
                      "result": {
                        "jobType": "AsyncCreateOrder",
                        "accountNumber": "A00000001",
                        "invoiceNumbers": [
                          "INV00000001"
                        ],
                        "orderLineItems": [
                          {
                            "id": "bd78c0522adf42c2aa0fccacc997fa20",
                            "itemNumber": "116"
                          }
                        ],
                        "orderNumber": "OM-00002",
                        "paidAmount": "300",
                        "paymentNumber": "P-00000002",
                        "status": "Pending",
                        "subscriptions": [
                          {
                            "status": "Pending Activation",
                            "subscriptionNumber": "SM-00001"
                          },
                          {
                            "status": "Pending Acceptance",
                            "subscriptionNumber": "SM-00002"
                          },
                          {
                            "status": "Active",
                            "subscriptionNumber": "SM-00003"
                          },
                          {
                            "status": "Pending Acceptance",
                            "subscriptionNumber": "SM-00004"
                          }
                        ],
                        "success": true
                      },
                      "status": "Completed",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetAsyncOrderJobResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve the status and response of a job",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orders/subscriptionOwner/{accountNumber}": {
      "get": {
        "description": "**Note:** This feature is only available if you have the [Order Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics) feature enabled. As of Zuora Billing Release 284, Orders is generally available and the Order Metrics feature is no longer available as a standalone feature. If you are an existing Subscribe and Amend customer and want Order Metrics only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization). You can still keep the existing Subscribe and Amend API integrations to create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default.        \n\nRetrieves the detailed information about all orders for a specified subscription owner. Any orders containing the changes on the subscriptions owned by this account are returned.\n\n**Note**: You cannot retrieve detailed information about draft orders or scheduled orders through this operation.\n",
        "operationId": "GET_OrdersBySubscriptionOwner",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The subscription owner account number.",
            "in": "path",
            "name": "accountNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The date type to filter on.\nThis field value can be 'orderDate' or 'updatedDate'. Default is orderDate.\n",
            "in": "query",
            "name": "dateFilterOption",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The result will only contain the orders with the date of 'dateFilterOption' later than or equal to this date.\n",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "The result will only contain the orders with the date of 'dateFilterOption' earlier than or equal to this date.\n",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "orders": [
                        {
                          "createdBy": "2c989028622282520162235ab0f603ba",
                          "createdDate": "2018-03-14 15:12:58",
                          "currency": "USD",
                          "customFields": {
                            "order_cf_date__c": "2017-01-01"
                          },
                          "description": "This is a description for the Order.",
                          "existingAccountNumber": "accountA_Num",
                          "invoiceScheduleId": "ec6f0d5dc8af451ab95343fb3c588c1a",
                          "orderDate": "2017-03-01",
                          "orderNumber": "O-00000002",
                          "status": "Completed",
                          "subscriptions": [
                            {
                              "baseVersion": 1,
                              "customFields": {
                                "sub_cf_picklist__c": null
                              },
                              "newVersion": 2,
                              "orderActions": [
                                {
                                  "customFields": {
                                    "oa_cf_text__c": null
                                  },
                                  "sequence": 0,
                                  "triggerDates": [
                                    {
                                      "name": "ContractEffective",
                                      "triggerDate": "2017-03-01"
                                    },
                                    {
                                      "name": "ServiceActivation",
                                      "triggerDate": "2017-03-01"
                                    },
                                    {
                                      "name": "CustomerAcceptance",
                                      "triggerDate": "2017-03-01"
                                    }
                                  ],
                                  "type": "UpdateProduct",
                                  "updateProduct": {
                                    "chargeUpdates": [
                                      {
                                        "billing": {
                                          "billingPeriodAlignment": null
                                        },
                                        "chargeNumber": "C-00000001",
                                        "customFields": {
                                          "srpc_cf_picklist__c": null
                                        },
                                        "description": null,
                                        "effectiveDate": {
                                          "specificTriggerDate": null
                                        },
                                        "newRatePlanChargeId": "2c989028622282520162235adabc0651",
                                        "pricing": {
                                          "recurringVolume": {
                                            "priceChangeOption": null,
                                            "priceIncreasePercentage": null,
                                            "quantity": 7,
                                            "tiers": []
                                          }
                                        },
                                        "uniqueToken": null
                                      }
                                    ],
                                    "customFields": {},
                                    "newRatePlanId": "2c989028622282520162235ada870649",
                                    "ratePlanId": "2c989028622282520162235acd1b05d2",
                                    "specificUpdateDate": null,
                                    "uniqueToken": null
                                  }
                                }
                              ],
                              "subscriptionNumber": "A-S00000001"
                            }
                          ],
                          "updatedBy": "2c989028622282520162235ab0f603ba",
                          "updatedDate": "2018-03-14 15:12:58"
                        },
                        {
                          "createdBy": "2c989028622282520162235ab0f603ba",
                          "createdDate": "2018-03-14 15:12:55",
                          "currency": "USD",
                          "customFields": {
                            "order_cf_date__c": "2017-01-01"
                          },
                          "existingAccountNumber": "accountA_Num",
                          "orderDate": "2017-01-01",
                          "orderNumber": "O-00000001",
                          "status": "Completed",
                          "subscriptions": [
                            {
                              "baseVersion": null,
                              "customFields": {
                                "sub_cf_picklist__c": "sub123"
                              },
                              "newVersion": 1,
                              "orderActions": [
                                {
                                  "createSubscription": {
                                    "invoiceSeparately": null,
                                    "notes": null,
                                    "subscribeToRatePlans": [
                                      {
                                        "chargeOverrides": [
                                          {
                                            "billing": {
                                              "billCycleDay": 1,
                                              "billCycleType": null,
                                              "billingPeriod": null,
                                              "billingPeriodAlignment": null,
                                              "billingTiming": null,
                                              "specificBillingPeriod": null,
                                              "weeklyBillCycleDay": null
                                            },
                                            "chargeNumber": "C-00000001",
                                            "customFields": {
                                              "srpc_cf_picklist__c": null
                                            },
                                            "description": null,
                                            "endDate": {
                                              "endDateCondition": null,
                                              "specificEndDate": null,
                                              "upToPeriods": null,
                                              "upToPeriodsType": null
                                            },
                                            "pricing": {
                                              "recurringVolume": {
                                                "listPriceBase": "Per_Billing_Period",
                                                "priceChangeOption": null,
                                                "priceIncreasePercentage": null,
                                                "quantity": 12,
                                                "tiers": []
                                              }
                                            },
                                            "productRateplanChargeId": "2c989028622282520162235aca7a05b9",
                                            "startDate": {
                                              "specificTriggerDate": null
                                            },
                                            "uniqueToken": null
                                          }
                                        ],
                                        "customFields": {},
                                        "newRatePlanId": "2c989028622282520162235acd1b05d2",
                                        "productRatePlanId": "2c989028622282520162235ac91605b3",
                                        "uniqueToken": null
                                      }
                                    ],
                                    "subscriptionOwnerAccountNumber": "accountA_Num",
                                    "terms": {
                                      "autoRenew": false,
                                      "initialTerm": {
                                        "period": 12,
                                        "periodType": "Month",
                                        "startDate": "2017-01-01",
                                        "termType": "TERMED"
                                      },
                                      "renewalSetting": "RENEW_WITH_SPECIFIC_TERM",
                                      "renewalTerms": [
                                        {
                                          "period": 0,
                                          "periodType": "Month"
                                        }
                                      ]
                                    }
                                  },
                                  "customFields": {
                                    "oa_cf_text__c": "oa cf test"
                                  },
                                  "sequence": 0,
                                  "triggerDates": [
                                    {
                                      "name": "ContractEffective",
                                      "triggerDate": "2017-01-01"
                                    },
                                    {
                                      "name": "ServiceActivation",
                                      "triggerDate": "2017-01-01"
                                    },
                                    {
                                      "name": "CustomerAcceptance",
                                      "triggerDate": "2017-01-01"
                                    }
                                  ],
                                  "type": "CreateSubscription"
                                }
                              ],
                              "subscriptionNumber": "A-S00000001"
                            }
                          ],
                          "updatedBy": "2c989028622282520162235ab0f603ba",
                          "updatedDate": "2018-03-14 15:12:55"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetOrdersResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List orders of a subscription owner",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orders/subscription/{subscriptionNumber}": {
      "get": {
        "description": "**Note:** This feature is only available if you have the [Order Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics) feature enabled. As of Zuora Billing Release 284, Orders is generally available and the Order Metrics feature is no longer available as a standalone feature. If you are an existing Subscribe and Amend customer and want Order Metrics only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization). You can still keep the existing Subscribe and Amend API integrations to create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default. \n\nRetrieves the detailed information about all orders for a specified subscription. You can set the `status` query parameter to an order status to retrieve orders in that order status. If you do not set a value for this query parameter, the query parameter has a default value `all`, and orders of all statuses are returned.\n",
        "operationId": "GET_OrdersBySubscriptionNumber",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The subscription number.",
            "in": "path",
            "name": "subscriptionNumber",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The date type to filter on. This field value can be 'orderDate' or 'updatedDate'. Default is orderDate.\n",
            "in": "query",
            "name": "dateFilterOption",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The result will only contain the orders with the date of 'dateFilterOption' later than or equal to this date.\n",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "The result will only contain the orders with the date of 'dateFilterOption' earlier than or equal to this date.\n",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "The status of orders.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "cancelled",
                "completed",
                "draft",
                "executing",
                "failed",
                "pending",
                "scheduled"
              ],
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "orders": [
                        {
                          "createdBy": "2c989028622282520162235ab0f603ba",
                          "createdDate": "2018-03-14 15:12:58",
                          "currency": "USD",
                          "customFields": {
                            "order_cf_date__c": "2017-01-01"
                          },
                          "description": "This is a description for the Order.",
                          "existingAccountNumber": "accountA_Num",
                          "invoiceScheduleId": "ec6f0d5dc8af451ab95343fb3c588c1a",
                          "orderDate": "2017-03-01",
                          "orderNumber": "O-00000002",
                          "status": "Completed",
                          "subscriptions": [
                            {
                              "baseVersion": 1,
                              "customFields": {
                                "sub_cf_picklist__c": null
                              },
                              "newVersion": 2,
                              "orderActions": [
                                {
                                  "customFields": {
                                    "oa_cf_text__c": null
                                  },
                                  "sequence": 0,
                                  "triggerDates": [
                                    {
                                      "name": "ContractEffective",
                                      "triggerDate": "2017-03-01"
                                    },
                                    {
                                      "name": "ServiceActivation",
                                      "triggerDate": "2017-03-01"
                                    },
                                    {
                                      "name": "CustomerAcceptance",
                                      "triggerDate": "2017-03-01"
                                    }
                                  ],
                                  "type": "UpdateProduct",
                                  "updateProduct": {
                                    "chargeUpdates": [
                                      {
                                        "billing": {
                                          "billingPeriodAlignment": null
                                        },
                                        "chargeNumber": "C-00000001",
                                        "customFields": {
                                          "srpc_cf_picklist__c": null
                                        },
                                        "description": null,
                                        "effectiveDate": {
                                          "specificTriggerDate": null
                                        },
                                        "newRatePlanChargeId": "2c989028622282520162235adabc0651",
                                        "pricing": {
                                          "recurringVolume": {
                                            "priceChangeOption": null,
                                            "priceIncreasePercentage": null,
                                            "quantity": 7,
                                            "tiers": []
                                          }
                                        },
                                        "uniqueToken": null
                                      }
                                    ],
                                    "customFields": {},
                                    "newRatePlanId": "2c989028622282520162235ada870649",
                                    "ratePlanId": "2c989028622282520162235acd1b05d2",
                                    "specificUpdateDate": null,
                                    "uniqueToken": null
                                  }
                                }
                              ],
                              "subscriptionNumber": "A-S00000001"
                            }
                          ],
                          "updatedBy": "2c989028622282520162235ab0f603ba",
                          "updatedDate": "2018-03-14 15:12:58"
                        },
                        {
                          "createdBy": "2c989028622282520162235ab0f603ba",
                          "createdDate": "2018-03-14 15:12:55",
                          "currency": "USD",
                          "customFields": {
                            "order_cf_date__c": "2017-01-01"
                          },
                          "existingAccountNumber": "accountA_Num",
                          "orderDate": "2017-01-01",
                          "orderNumber": "O-00000001",
                          "status": "Completed",
                          "subscriptions": [
                            {
                              "baseVersion": null,
                              "customFields": {
                                "sub_cf_picklist__c": "sub123"
                              },
                              "newVersion": 1,
                              "orderActions": [
                                {
                                  "createSubscription": {
                                    "invoiceSeparately": null,
                                    "notes": null,
                                    "subscribeToRatePlans": [
                                      {
                                        "chargeOverrides": [
                                          {
                                            "billing": {
                                              "billCycleDay": 1,
                                              "billCycleType": null,
                                              "billingPeriod": null,
                                              "billingPeriodAlignment": null,
                                              "billingTiming": null,
                                              "specificBillingPeriod": null,
                                              "weeklyBillCycleDay": null
                                            },
                                            "chargeNumber": "C-00000001",
                                            "customFields": {
                                              "srpc_cf_picklist__c": null
                                            },
                                            "description": null,
                                            "endDate": {
                                              "endDateCondition": null,
                                              "specificEndDate": null,
                                              "upToPeriods": null,
                                              "upToPeriodsType": null
                                            },
                                            "pricing": {
                                              "recurringVolume": {
                                                "listPriceBase": "Per_Billing_Period",
                                                "priceChangeOption": null,
                                                "priceIncreasePercentage": null,
                                                "quantity": 12,
                                                "tiers": []
                                              }
                                            },
                                            "productRateplanChargeId": "2c989028622282520162235aca7a05b9",
                                            "startDate": {
                                              "specificTriggerDate": null
                                            },
                                            "uniqueToken": null
                                          }
                                        ],
                                        "customFields": {},
                                        "newRatePlanId": "2c989028622282520162235acd1b05d2",
                                        "productRatePlanId": "2c989028622282520162235ac91605b3",
                                        "uniqueToken": null
                                      }
                                    ],
                                    "subscriptionOwnerAccountNumber": "accountA_Num",
                                    "terms": {
                                      "autoRenew": false,
                                      "initialTerm": {
                                        "period": 12,
                                        "periodType": "Month",
                                        "startDate": "2017-01-01",
                                        "termType": "TERMED"
                                      },
                                      "renewalSetting": "RENEW_WITH_SPECIFIC_TERM",
                                      "renewalTerms": [
                                        {
                                          "period": 0,
                                          "periodType": "Month"
                                        }
                                      ]
                                    }
                                  },
                                  "customFields": {
                                    "oa_cf_text__c": "oa cf test"
                                  },
                                  "sequence": 0,
                                  "triggerDates": [
                                    {
                                      "name": "ContractEffective",
                                      "triggerDate": "2017-01-01"
                                    },
                                    {
                                      "name": "ServiceActivation",
                                      "triggerDate": "2017-01-01"
                                    },
                                    {
                                      "name": "CustomerAcceptance",
                                      "triggerDate": "2017-01-01"
                                    }
                                  ],
                                  "type": "CreateSubscription"
                                }
                              ],
                              "subscriptionNumber": "A-S00000001"
                            }
                          ],
                          "updatedBy": "2c989028622282520162235ab0f603ba",
                          "updatedDate": "2018-03-14 15:12:55"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetOrdersResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List orders by subscription number",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orders/invoiceOwner/{accountNumber}": {
      "get": {
        "description": "**Note:** This feature is only available if you have the [Order Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics) feature enabled. As of Zuora Billing Release 284, Orders is generally available and the Order Metrics feature is no longer available as a standalone feature. If you are an existing Subscribe and Amend customer and want Order Metrics only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization). You can still keep the existing Subscribe and Amend API integrations to create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default.        \n\nRetrieves the detailed information about all orders for a specified invoice owner. You can set the `status` query parameter to an order status to retrieve orders in that order status. If you do not set a value for this query parameter, the query parameter has a default value `all`, and orders of all statuses are returned.\n",
        "operationId": "GET_OrdersByInvoiceOwner",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The invoice owner account number.",
            "in": "path",
            "name": "accountNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The date type to filter on. This field value can be orderDate or updatedDate. Default is orderDate.\n",
            "in": "query",
            "name": "dateFilterOption",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The result will only contain the orders with the date of dateFilterOption later than or equal to this date.\n",
            "in": "query",
            "name": "startDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "The result will only contain the orders with the date of dateFilterOption earlier than or equal to this date.\n",
            "in": "query",
            "name": "endDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "The status of orders.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "cancelled",
                "completed",
                "draft",
                "executing",
                "failed",
                "pending",
                "scheduled"
              ],
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "orders": [
                        {
                          "createdBy": "2c989028622282520162235ab0f603ba",
                          "createdDate": "2018-03-14 15:12:58",
                          "currency": "USD",
                          "customFields": {
                            "order_cf_date__c": "2017-01-01"
                          },
                          "description": "This is a description for the Order.",
                          "existingAccountNumber": "accountA_Num",
                          "invoiceScheduleId": "ec6f0d5dc8af451ab95343fb3c588c1a",
                          "orderDate": "2017-03-01",
                          "orderNumber": "O-00000002",
                          "status": "Completed",
                          "subscriptions": [
                            {
                              "baseVersion": 1,
                              "customFields": {
                                "sub_cf_picklist__c": null
                              },
                              "newVersion": 2,
                              "orderActions": [
                                {
                                  "customFields": {
                                    "oa_cf_text__c": null
                                  },
                                  "sequence": 0,
                                  "triggerDates": [
                                    {
                                      "name": "ContractEffective",
                                      "triggerDate": "2017-03-01"
                                    },
                                    {
                                      "name": "ServiceActivation",
                                      "triggerDate": "2017-03-01"
                                    },
                                    {
                                      "name": "CustomerAcceptance",
                                      "triggerDate": "2017-03-01"
                                    }
                                  ],
                                  "type": "UpdateProduct",
                                  "updateProduct": {
                                    "chargeUpdates": [
                                      {
                                        "billing": {
                                          "billingPeriodAlignment": null
                                        },
                                        "chargeNumber": "C-00000001",
                                        "customFields": {
                                          "srpc_cf_picklist__c": null
                                        },
                                        "description": null,
                                        "effectiveDate": {
                                          "specificTriggerDate": null
                                        },
                                        "newRatePlanChargeId": "2c989028622282520162235adabc0651",
                                        "pricing": {
                                          "recurringVolume": {
                                            "priceChangeOption": null,
                                            "priceIncreasePercentage": null,
                                            "quantity": 7,
                                            "tiers": []
                                          }
                                        },
                                        "uniqueToken": null
                                      }
                                    ],
                                    "customFields": {},
                                    "newRatePlanId": "2c989028622282520162235ada870649",
                                    "ratePlanId": "2c989028622282520162235acd1b05d2",
                                    "specificUpdateDate": null,
                                    "uniqueToken": null
                                  }
                                }
                              ],
                              "subscriptionNumber": "A-S00000001"
                            }
                          ],
                          "updatedBy": "2c989028622282520162235ab0f603ba",
                          "updatedDate": "2018-03-14 15:12:58"
                        },
                        {
                          "createdBy": "2c989028622282520162235ab0f603ba",
                          "createdDate": "2018-03-14 15:12:55",
                          "currency": "USD",
                          "customFields": {
                            "order_cf_date__c": "2017-01-01"
                          },
                          "existingAccountNumber": "accountA_Num",
                          "orderDate": "2017-01-01",
                          "orderNumber": "O-00000001",
                          "status": "Completed",
                          "subscriptions": [
                            {
                              "baseVersion": null,
                              "customFields": {
                                "sub_cf_picklist__c": "sub123"
                              },
                              "newVersion": 1,
                              "orderActions": [
                                {
                                  "createSubscription": {
                                    "invoiceSeparately": null,
                                    "notes": null,
                                    "subscribeToRatePlans": [
                                      {
                                        "chargeOverrides": [
                                          {
                                            "billing": {
                                              "billCycleDay": 1,
                                              "billCycleType": null,
                                              "billingPeriod": null,
                                              "billingPeriodAlignment": null,
                                              "billingTiming": null,
                                              "specificBillingPeriod": null,
                                              "weeklyBillCycleDay": null
                                            },
                                            "chargeNumber": "C-00000001",
                                            "customFields": {
                                              "srpc_cf_picklist__c": null
                                            },
                                            "description": null,
                                            "endDate": {
                                              "endDateCondition": null,
                                              "specificEndDate": null,
                                              "upToPeriods": null,
                                              "upToPeriodsType": null
                                            },
                                            "pricing": {
                                              "recurringVolume": {
                                                "listPriceBase": "Per_Billing_Period",
                                                "priceChangeOption": null,
                                                "priceIncreasePercentage": null,
                                                "quantity": 12,
                                                "tiers": []
                                              }
                                            },
                                            "productRateplanChargeId": "2c989028622282520162235aca7a05b9",
                                            "startDate": {
                                              "specificTriggerDate": null
                                            },
                                            "uniqueToken": null
                                          }
                                        ],
                                        "customFields": {},
                                        "newRatePlanId": "2c989028622282520162235acd1b05d2",
                                        "productRatePlanId": "2c989028622282520162235ac91605b3",
                                        "uniqueToken": null
                                      }
                                    ],
                                    "subscriptionOwnerAccountNumber": "accountA_Num",
                                    "terms": {
                                      "autoRenew": false,
                                      "initialTerm": {
                                        "period": 12,
                                        "periodType": "Month",
                                        "startDate": "2017-01-01",
                                        "termType": "TERMED"
                                      },
                                      "renewalSetting": "RENEW_WITH_SPECIFIC_TERM",
                                      "renewalTerms": [
                                        {
                                          "period": 0,
                                          "periodType": "Month"
                                        }
                                      ]
                                    }
                                  },
                                  "customFields": {
                                    "oa_cf_text__c": "oa cf test"
                                  },
                                  "sequence": 0,
                                  "triggerDates": [
                                    {
                                      "name": "ContractEffective",
                                      "triggerDate": "2017-01-01"
                                    },
                                    {
                                      "name": "ServiceActivation",
                                      "triggerDate": "2017-01-01"
                                    },
                                    {
                                      "name": "CustomerAcceptance",
                                      "triggerDate": "2017-01-01"
                                    }
                                  ],
                                  "type": "CreateSubscription"
                                }
                              ],
                              "subscriptionNumber": "A-S00000001"
                            }
                          ],
                          "updatedBy": "2c989028622282520162235ab0f603ba",
                          "updatedDate": "2018-03-14 15:12:55"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetOrdersResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List orders of an invoice owner",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orders/{orderNumber}/customFields": {
      "put": {
        "description": "**Note:** This feature is only available if you have the [Order Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics) feature enabled. As of Zuora Billing Release 284, Orders is generally available and the Order Metrics feature is no longer available as a standalone feature. If you are an existing Subscribe and Amend customer and want Order Metrics only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization). You can still keep the existing Subscribe and Amend API integrations to create and manage subscriptions.\n\n**Note:** To update the custom fields of an order line item, you must use the \"Update an order line item\" or \"Update order line items\" operation.\n\nUpdates the custom fields of a specified order.\n",
        "operationId": "PUT_UpdateOrderCustomFields",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The order number.",
            "in": "path",
            "name": "orderNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTOrderPatchRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update order custom fields",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/subscriptions/{subscriptionNumber}/customFields": {
      "put": {
        "description": "**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled. If you are an existing Zuora <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Subscribe_and_Amend\" target=\"_blank\">Subscribe and Amend</a> customer, we recommend you enable <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\" target=\"_blank\">Orders Harmonization</a> to access the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\" target=\"_blank\">Orders</a> feature. With Orders, you can access both existing functions for subscription and billing management and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/P_FAQ_about_Orders_Harmonization#New+features+through+Orders\" target=\"_blank\">new features</a> on Zuora Billing.\n\nUpdates the custom fields of a specified subscription.\n",
        "operationId": "PUT_UpdateSubscriptionCustomFields",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The subscription number to be updated.",
            "in": "path",
            "name": "subscriptionNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTSubscriptionPatchRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update subscription custom fields",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orders/{orderNumber}/triggerDates": {
      "put": {
        "description": "**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled. If you are an existing Zuora <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Subscribe_and_Amend\" target=\"_blank\">Subscribe and Amend</a> customer, we recommend you enable <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\" target=\"_blank\">Orders Harmonization</a> to access the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\" target=\"_blank\">Orders</a> feature. With Orders, you can access both existing functions for subscription and billing management and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/P_FAQ_about_Orders_Harmonization#New+features+through+Orders\" target=\"_blank\">new features</a> on Zuora Billing.\n\nUpdates the triggering dates for either of the following order actions:\n * CreateSubscription\n * AddProduct\n * UpdateProduct\n * RemoveProduct\n * RenewSubscription\n * TermsAndConditions\n",
        "operationId": "PUT_OrderTriggerDates",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Order number of a pending order in which you are to update an order action's triggering dates.",
            "in": "path",
            "name": "orderNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTOrderActionTriggerDatesRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "orderNumber": "O-00000408",
                      "status": "Completed",
                      "accountNumber": "A00000097",
                      "subscriptions": [
                        {
                          "subscriptionNumber": "A-S00000143",
                          "status": "Active"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTOrderTriggerDatesResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update order action trigger dates",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orders/{orderNumber}/activate": {
      "put": {
        "description": "**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled. If you are an existing Zuora <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Subscribe_and_Amend\" target=\"_blank\">Subscribe and Amend</a> customer, we recommend you enable <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\" target=\"_blank\">Orders Harmonization</a> to access the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\" target=\"_blank\">Orders</a> feature. With Orders, you can access both existing functions for subscription and billing management and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/P_FAQ_about_Orders_Harmonization#New+features+through+Orders\" target=\"_blank\">new features</a> on Zuora Billing.\n\nActivate order is only available for draft orders.\n",
        "operationId": "PUT_OrderActivate",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Order number of a order in which you are to activate.",
            "in": "path",
            "name": "orderNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountNumber": "A00000001",
                      "invoiceNumbers": [
                        "INV00000001"
                      ],
                      "orderLineItems": [
                        {
                          "id": "bd78c0522adf42c2aa0fccacc997fa20",
                          "itemNumber": "116"
                        }
                      ],
                      "orderNumber": "OM-00002",
                      "paidAmount": 300,
                      "paymentNumber": "P-00000002",
                      "status": "Pending",
                      "subscriptions": [
                        {
                          "status": "Pending Activation",
                          "subscriptionNumber": "SM-00001"
                        },
                        {
                          "status": "Pending Acceptance",
                          "subscriptionNumber": "SM-00002"
                        },
                        {
                          "status": "Active",
                          "subscriptionNumber": "SM-00003"
                        },
                        {
                          "status": "Pending Acceptance",
                          "subscriptionNumber": "SM-00004"
                        },
                        {
                          "status": "Suspended",
                          "subscriptionNumber": "SM-00005"
                        },
                        {
                          "status": "Active",
                          "subscriptionNumber": "SM-00006"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PostOrderResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Activate an order",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orders/{orderNumber}/cancel": {
      "put": {
        "description": "**Note:** This operation is only available if you have the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature enabled. If you are an existing Zuora <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Subscribe_and_Amend\" target=\"_blank\">Subscribe and Amend</a> customer, we recommend you enable <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\" target=\"_blank\">Orders Harmonization</a> to access the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders/AA_Overview_of_Orders/A_Overview_of_Orders\" target=\"_blank\">Orders</a> feature. With Orders, you can access both existing functions for subscription and billing management and the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Subscriptions/Subscriptions/Orders_Harmonization/P_FAQ_about_Orders_Harmonization#New+features+through+Orders\" target=\"_blank\">new features</a> on Zuora Billing.\n\n**Note:** Cancellation is only valid for draft or scheduled orders. If the order is not in draft or scheduled status, the API returns an error. ",
        "operationId": "PUT_OrderCancel",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The order number of the draft order you wish to cancel.",
            "in": "path",
            "name": "orderNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "cancelReason": {
                    "description": "The reason for cancelling the order.",
                    "example": "Customer cancelled the order.",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "CancelReason": "Customer cancelled the order.",
                      "accountNumber": "A00000001",
                      "orderNumber": "OM-00002",
                      "status": "Cancelled",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PutOrderCancelResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel an order",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orders/{orderNumber}/revert": {
      "post": {
        "description": "Reverts an order though this operation.\n\n**Note**: This operation is only available if you have the following features turned on:\n\n  - <a href=\"https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders\" target=\"_blank\">Orders</a>\n  \n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/Single_Version_Subscription\" target=\"_blank\">Single Version Subscription</a>\n\nFor information on what orders can be reverted, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/Single_Version_Subscription/Revert_orders\" target=\"_blank\">Revert orders</a>. \n",
        "operationId": "revertOrder",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The order number of the order you wish to revert.",
            "in": "path",
            "name": "orderNumber",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevertOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "accountNumber": "A00000001",
                  "orderNumber": "O-00000020",
                  "status": "Completed",
                  "success": true,
                  "subscriptionNumbers": [
                    "A-S00000001"
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/RevertOrderResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header. ",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header. ",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "processId",
                  "reasons": [
                    {
                      "code": "51001122",
                      "message": "'billToContact' may not be null"
                    },
                    {
                      "code": "51000030",
                      "message": "If 'billingCycleDay' is absent, 'subscription.contractEffectiveDate' is necessary"
                    }
                  ],
                  "success": false
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Revert an order",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orders/subscription/{subscription-key}/pending": {
      "get": {
        "description": "**Note:** This feature is only available if you have the [Order Metrics](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Order_Metrics) feature enabled. As of Zuora Billing Release 284, Orders is generally available and the Order Metrics feature is no longer available as a standalone feature. If you are an existing Subscribe and Amend customer and want Order Metrics only, you must turn on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization). You can still keep the existing Subscribe and Amend API integrations to create and manage subscriptions.\n\n**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default. \n\nRetrieves the detailed information about all pending orders for a specified subscription.\n",
        "operationId": "GET_PendingOrdersBySubscriptionNumber",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Subscription number. For example, A-S00000135.\n",
            "in": "path",
            "name": "subscription-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "orders": [
                        {
                          "createdBy": "2c989028622282520162235ab0f603ba",
                          "createdDate": "2018-03-14 15:12:55",
                          "currency": "USD",
                          "existingAccountNumber": "accountA_Num",
                          "invoiceScheduleId": "ec6f0d5dc8af451ab95343fb3c588c1a",
                          "orderDate": "2017-01-01",
                          "orderNumber": "O-00000001",
                          "status": "Pending",
                          "subscriptions": [
                            {
                              "baseVersion": null,
                              "customFields": {
                                "sub_cf_picklist__c": "sub123"
                              },
                              "newVersion": 1,
                              "orderActions": [
                                {
                                  "createSubscription": {
                                    "subscribeToRatePlans": [
                                      {
                                        "chargeOverrides": [
                                          {
                                            "chargeNumber": "C-00000001",
                                            "pricing": {
                                              "recurringVolume": {
                                                "listPriceBase": "Per_Billing_Period",
                                                "quantity": 12,
                                                "tiers": []
                                              }
                                            },
                                            "productRateplanChargeId": "2c989028622282520162235aca7a05b9"
                                          }
                                        ],
                                        "customFields": {},
                                        "newRatePlanId": "2c989028622282520162235acd1b05d2",
                                        "productRatePlanId": "2c989028622282520162235ac91605b3"
                                      }
                                    ],
                                    "subscriptionOwnerAccountNumber": "accountA_Num",
                                    "terms": {
                                      "autoRenew": false,
                                      "initialTerm": {
                                        "period": 12,
                                        "periodType": "Month",
                                        "startDate": "2017-01-01",
                                        "termType": "TERMED"
                                      },
                                      "renewalSetting": "RENEW_WITH_SPECIFIC_TERM",
                                      "renewalTerms": [
                                        {
                                          "period": 0,
                                          "periodType": "Month"
                                        }
                                      ]
                                    }
                                  },
                                  "customFields": {
                                    "order_cf_date__c": "2017-01-01"
                                  },
                                  "sequence": 0,
                                  "triggerDates": [
                                    {
                                      "name": "ContractEffective",
                                      "triggerDate": "2017-01-01"
                                    },
                                    {
                                      "name": "ServiceActivation",
                                      "triggerDate": "2017-01-01"
                                    }
                                  ],
                                  "type": "CreateSubscription"
                                }
                              ],
                              "subscriptionNumber": "A-S00000001"
                            }
                          ],
                          "success": true,
                          "updatedBy": "2c989028622282520162235ab0f603ba",
                          "updatedDate": "2018-03-14 15:12:55"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetAllOrdersResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List pending orders by subscription number",
        "tags": [
          "Orders"
        ]
      }
    },
    "/v1/orderActions/{id}": {
      "put": {
        "description": "Updates the change reason and custom fields for an order action.",
        "operationId": "PUT_OrderActions",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The id of the Order Action to update.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTOrderActionsRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an order action",
        "tags": [
          "Order Actions"
        ]
      }
    },
    "/v1/order-line-items/{itemId}": {
      "get": {
        "description": "**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default. If you are a new customer who onboard on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature, submit a request at [Zuora Global Support](https://support.zuora.com/). If you are an existing [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) customer and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature, submit a request at [Zuora Global Support](https://support.zuora.com/).\n\nRetrieves the detailed information about a specified order line item. The following tutorial demonstrates how to use this operation:\n* [View details of an order line item](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/GJ_View_details_of_an_order_line_item)\n",
        "operationId": "GET_OrderLineItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The id of the Order Line Item to retrieve.",
            "in": "path",
            "name": "itemId",
            "required": true,
            "schema": {
              "format": "UUID",
              "type": "string"
            }
          },
          {
            "description": "Return the related fulfillments or not.\n",
            "in": "query",
            "name": "fulfillment",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "orderLineItem": {
                        "UOM": null,
                        "accountingCode": null,
                        "amount": 10000,
                        "amountPerUnit": 5000,
                        "amountWithoutTax": 10000,
                        "billTargetDate": null,
                        "billTo": "2c9081a03c6d7b51013c6d7e2dfc09fa",
                        "billToSnapshotId": "4028fc8487c0a43c0187c12a91500060",
                        "customFields": {
                          "externalNumber5__c": "olinumber-023"
                        },
                        "description": "With Dual Stereo Microphones, HD 1080p, Black,USB connectivity for ease of use.",
                        "id": "4028fc827a0e48c1017a0e4dccc60002",
                        "invoiceGroupNumber": "N-0001",
                        "invoiceOwnerAccountId": "ff80808187ff38570187ff433cbd38ef",
                        "invoiceOwnerAccountName": "AC_AC_16836148090011683614809001",
                        "invoiceOwnerAccountNumber": "AN_1683614809001",
                        "itemName": "webcam",
                        "itemNumber": "1",
                        "itemState": "Executing",
                        "itemType": "Product",
                        "listPrice": 118,
                        "listPricePerUnit": 59,
                        "orderId": "4028fc827a0e48c1017a0e58b9330014",
                        "ownerAccountId": "ff80808187ff38570187ff433f974203",
                        "ownerAccountName": "AC_AC_16836148099861683614809986",
                        "ownerAccountNumber": "AN_1683614809986",
                        "productCode": "C9201",
                        "productRatePlanChargeId": null,
                        "purchaseOrderNumber": "960-000764",
                        "quantity": 2,
                        "relatedSubscriptionNumber": "Warranty-00002",
                        "soldTo": "4028fc828244a0ac018244dfc9a90bee",
                        "soldToSnapshotId": "4028fc828244a0ac018244dfc9b00bf0",
                        "transactionDate": "2021-02-01"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetOrderLineItemResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an order line item",
        "tags": [
          "Order Line Items"
        ]
      },
      "put": {
        "description": "**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default. If you are a new customer who onboard on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature, submit a request at [Zuora Global Support](https://support.zuora.com/). If you are an existing [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) customer and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature, submit a request at [Zuora Global Support](https://support.zuora.com/).\nUpdates a specified order line item. The following tutorials demonstrate how to use this operation:\n* [Update an order line item](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/GH_Update_an_order_line_item)\n* [Cancel an order line item](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/GZ_Cancel_an_order_line_item)\n",
        "operationId": "PUT_OrderLineItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The id of the Order Line Item to update.",
            "in": "path",
            "name": "itemId",
            "required": true,
            "schema": {
              "format": "UUID",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTOrderLineItemRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PutOrderLineItemResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an order line item",
        "tags": [
          "Order Line Items"
        ]
      }
    },
    "/v1/order-line-items/bulk": {
      "post": {
        "description": "**Note:** The [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature is now generally available to all Zuora customers. You need to enable the [Orders](https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders) feature to access the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AA_Overview_of_Order_Line_Items) feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) will have the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature enabled by default. If you are a new customer who onboard on [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature, submit a request at [Zuora Global Support](https://support.zuora.com/). If you are an existing [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) or [Orders Harmonization](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Orders_Harmonization/Orders_Harmonization) customer and want to enable the [Order Line Items](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items) feature, submit a request at [Zuora Global Support](https://support.zuora.com/).\n\nBulk-updates multiple order line items. You can also choose to generate an invoice for these updated order line items.\n\nThe maximum number of order line items allowable to update in a call is 100. \n",
        "operationId": "Post_OrderLineItems",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostOrderLineItemsRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOrderLineItemResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update order line items",
        "tags": [
          "Order Line Items"
        ]
      }
    },
    "/v1/fulfillments": {
      "post": {
        "description": "\nCreates one or multiple Fulfillment objects. You can also generate invoices or memos for these Fulfillment objects in this API call. The following tutorials demonstrate how to use this operation:\n* [Create a sales order line item with fulfillments](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/AD_Create_a_sales_order_line_item_with_fulfillments)\n* [Create a return order line item with fulfillments](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/Create_a_return_order_line_item_with_fulfillments)\n",
        "operationId": "Create_Fulfillment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostFulfillmentsRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "creditMemoNumbers": null,
                      "fulfillments": [
                        {
                          "fulfillmentNumber": "F-00000001",
                          "id": "4028828c82819b740182821bb3b415c6"
                        },
                        {
                          "fulfillmentNumber": "F-00000002",
                          "id": "4028828c82819b740182821bb3bc15c7"
                        }
                      ],
                      "invoiceNumbers": [
                        "INV00000001"
                      ],
                      "paidAmount": 100,
                      "paymentNumber": "P-00000001",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PostFulfillmentsResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create fulfillments",
        "tags": [
          "Fulfillments"
        ]
      }
    },
    "/v1/fulfillments/{key}": {
      "delete": {
        "description": "Deletes a specified fulfillment. A fulfillment can only be deleted when it is in the `Executing` state.\n",
        "operationId": "Delete_Fulfillment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The id or fulfillment number of the Fulfillment to delete.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "format": "UUID",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a fulfillment",
        "tags": [
          "Fulfillments"
        ]
      },
      "get": {
        "description": "Retrieves the detailed information about a specified fulfillment. The following tutorial demonstrates how to use this operation:\n* [View details of a fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/H_View_details_of_a_fulfillment)\n",
        "operationId": "GET_Fulfillment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The id or fulfillment number of the Fulfillment to retrieve.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "format": "UUID",
              "type": "string"
            }
          },
          {
            "description": "Return the related fulfillment items or not.",
            "in": "query",
            "name": "fulfillment-items",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "fulfillment": {
                        "billTargetDate": "2022-01-01",
                        "carrier": "carrier",
                        "customFields": {
                          "priority__c": "Hight"
                        },
                        "description": "description",
                        "externalId": "9dc1a064-b5d1-4d7b-bd0b-ca26a1be8e01",
                        "fulfillmentDate": "2022-01-01",
                        "fulfillmentItems": [
                          {
                            "customFields": {
                              "category__c": "Old"
                            },
                            "description": "description",
                            "fulfillmentId": "4028828c82819b74018281a69d3f0d93",
                            "id": "4028828c82819b74018281a69d680d98",
                            "itemIdentifier": "87309cf0-10c7-4130-8da2-439c96daa1ff"
                          }
                        ],
                        "fulfillmentLocation": "location",
                        "fulfillmentNumber": "F-00000001",
                        "fulfillmentSystem": "fulfillment system",
                        "fulfillmentType": "Delivery",
                        "id": "4028828c82819b74018281a69d3f0d93",
                        "orderLineItemId": "4028828c82819b74018281a69adf0d4e",
                        "quantity": 1,
                        "state": "SentToBilling",
                        "trackingNumber": "T-00091912"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetFulfillmentResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a fulfillment",
        "tags": [
          "Fulfillments"
        ]
      },
      "put": {
        "description": "\n\nUpdates a specified fulfillment. The `state` field of a fulfillment can only be updated when it is in a different state, to trigger the state transition. The other fields of a fulfillment can only be updated when the fulfillment is in the `Executing` state, or when the fulfillment is in the `Booked` state and the user has the \"Allow Edit Of Booked Order Line Items\" permission.\nThe following tutorial demonstrates how to use this operation:\n* [Update or cancel a fulfillment](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Order_Line_Items/H_Update_a_fulfillment)\n",
        "operationId": "PUT_Fulfillment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The id or fulfillment number of the Fulfillment to update.",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "format": "UUID",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutFulfillmentRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a fulfillment",
        "tags": [
          "Fulfillments"
        ]
      }
    },
    "/v1/fulfillment-items": {
      "post": {
        "description": "Creates one or multiple fulfillment items.\n",
        "operationId": "Create_FulfillmentItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostFulfillmentItemsRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "fulfillmentItems": [
                        {
                          "id": "4028828c82819b74018282544fea17c6"
                        },
                        {
                          "id": "4028828c82819b7401828254507a17c7"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PostFulfillmentItemsResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create fulfillment items",
        "tags": [
          "Fulfillments"
        ]
      }
    },
    "/v1/fulfillment-items/{id}": {
      "delete": {
        "description": "Deletes a specified fulfillment item.\n",
        "operationId": "Delete_FulfillmentItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The id of the Fulfillment Item to delete.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "UUID",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a fulfillment item",
        "tags": [
          "Fulfillments"
        ]
      },
      "get": {
        "description": "Retrieves the detailed information about a specified fulfillment item. \n",
        "operationId": "GET_FulfillmentItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The id of the Fulfillment Item to retrieve.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "UUID",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "fulfillmentItem": {
                        "customFields": {
                          "PICKLIST_CF__c": "option_2"
                        },
                        "description": "item description",
                        "fulfillmentId": "4028828c82819b74018282572f6719b4",
                        "id": "4028828c82819b7401828257303a19b6",
                        "itemIdentifier": "5da7a054-24c6-4f29-866b-2c570d844fd0"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetFulfillmentItemResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a fulfillment item",
        "tags": [
          "Fulfillments"
        ]
      },
      "put": {
        "description": "Updates a specified fulfillment item. \n",
        "operationId": "PUT_FulfillmentItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The id of the Fulfillment Item to update.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "UUID",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutFulfillmentItemRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a fulfillment item",
        "tags": [
          "Fulfillments"
        ]
      }
    },
    "/v1/ramps/{rampNumber}": {
      "get": {
        "description": "**Note**: This operation is only available if you have the Ramps feature enabled. The [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://docs.zuora.com/en/entitlements/current-entitlements/zuora-editions) for pricing information coming October 2020.\n\nRetrieves the latest definition of a specified ramp.\n",
        "operationId": "GET_RampByRampNumber",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The automatically generated number of a ramp. For example, R-00000268.\n",
            "in": "path",
            "name": "rampNumber",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "ramp": {
                        "charges": [
                          {
                            "chargeNumber": "C-00000202"
                          }
                        ],
                        "description": "",
                        "id": "40289f7b7321f5ce0173229d798300cf",
                        "intervals": [
                          {
                            "description": "",
                            "endDate": "2020-12-31",
                            "name": "Year 1",
                            "startDate": "2020-01-01"
                          },
                          {
                            "description": "",
                            "endDate": "2021-12-31",
                            "name": "Year 2",
                            "startDate": "2021-01-01"
                          }
                        ],
                        "name": "Two Years Ramp",
                        "number": "R-00000268",
                        "subscriptionNumber": "A-S00000287"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRampByRampNumberResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a ramp",
        "tags": [
          "Ramps"
        ]
      }
    },
    "/v1/ramps/{rampNumber}/ramp-metrics": {
      "get": {
        "description": "**Note**: This operation is only available if you have the Ramps feature enabled. The [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://docs.zuora.com/en/entitlements/current-entitlements/zuora-editions) for pricing information coming October 2020.\n\nRetrieves key metrics about a specified ramp, including the following metrics:\n\n* TCB, TCV in the Ramp level\n* TCB, TCV in the Interval level\n* TCB, TCV, Quantity, and MRR in Interval Metrics\n* Delta TCB, Delta TCV, Delta Quantity, and Delta MRR in Interval Delta Metrics\n\nSee [Key metrics for Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/F_Key_metrics_for_Ramps) for more information.\n",
        "operationId": "GET_RampMetricsByRampNumber",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The automatically generated number of a ramp. For example, R-00000268.\n",
            "in": "path",
            "name": "rampNumber",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "rampMetrics": {
                        "description": "",
                        "discountTcb": 0,
                        "discountTcv": 0,
                        "grossTcb": 240,
                        "grossTcv": 240,
                        "intervals": [
                          {
                            "description": "",
                            "discountTcb": 0,
                            "discountTcv": 0,
                            "endDate": "2020-12-31",
                            "grossTcb": 120,
                            "grossTcv": 120,
                            "intervalMetrics": [
                              {
                                "chargeNumber": "C-00000202",
                                "discountTcb": 0,
                                "discountTcv": 0,
                                "endDate": "2020-12-31",
                                "grossTcb": 120,
                                "grossTcv": 120,
                                "mrr": [
                                  {
                                    "discount": 0,
                                    "endDate": "2020-12-31",
                                    "gross": 10,
                                    "net": 10,
                                    "startDate": "2020-01-01"
                                  }
                                ],
                                "netTcb": 120,
                                "netTcv": 120,
                                "productRatePlanChargeId": "40289f7b7115832f0171158e6dd906cd",
                                "quantity": 1,
                                "ratePlanChargeId": "40289f7b7321f5ce0173229d792c00c8",
                                "startDate": "2020-01-01",
                                "subscriptionNumber": "A-S00000287"
                              }
                            ],
                            "name": "Year 1",
                            "netTcb": 120,
                            "netTcv": 120,
                            "startDate": "2020-01-01"
                          },
                          {
                            "description": "",
                            "discountTcb": 0,
                            "discountTcv": 0,
                            "endDate": "2021-12-31",
                            "grossTcb": 120,
                            "grossTcv": 120,
                            "intervalMetrics": [
                              {
                                "chargeNumber": "C-00000202",
                                "discountTcb": 0,
                                "discountTcv": 0,
                                "endDate": "2021-12-31",
                                "grossTcb": 120,
                                "grossTcv": 120,
                                "mrr": [
                                  {
                                    "discount": 0,
                                    "endDate": "2021-12-31",
                                    "gross": 10,
                                    "net": 10,
                                    "startDate": "2021-01-01"
                                  }
                                ],
                                "netTcb": 120,
                                "netTcv": 120,
                                "productRatePlanChargeId": "40289f7b7115832f0171158e6dd906cd",
                                "quantity": 1,
                                "ratePlanChargeId": "40289f7b7321f5ce0173229d792c00c8",
                                "startDate": "2021-01-01",
                                "subscriptionNumber": "A-S00000287"
                              }
                            ],
                            "name": "Year 2",
                            "netTcb": 120,
                            "netTcv": 120,
                            "startDate": "2021-01-01"
                          }
                        ],
                        "name": "Two Years Ramp",
                        "netTcb": 240,
                        "netTcv": 240,
                        "number": "R-00000268"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRampMetricsByRampNumberResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all ramp metrics of a ramp",
        "tags": [
          "Ramps"
        ]
      }
    },
    "/v1/subscriptions/{subscriptionKey}/ramps": {
      "get": {
        "description": "**Note**: This operation is only available if you have the Ramps feature enabled. The [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://docs.zuora.com/en/entitlements/current-entitlements/zuora-editions) for pricing information coming October 2020.\n\n Retrieves the definition of the ramp associated with a specified subscription.\n",
        "operationId": "GET_RampsBySubscriptionKey",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of an existing subscription.\n",
            "in": "path",
            "name": "subscriptionKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "ramps": [
                        {
                          "charges": [
                            {
                              "chargeNumber": "C-00000202"
                            }
                          ],
                          "description": "",
                          "id": "40289f7b7321f5ce0173229d798300cf",
                          "intervals": [
                            {
                              "description": "",
                              "endDate": "2020-12-31",
                              "name": "Year 1",
                              "startDate": "2020-01-01"
                            },
                            {
                              "description": "",
                              "endDate": "2021-12-31",
                              "name": "Year 2",
                              "startDate": "2021-01-01"
                            }
                          ],
                          "name": "Two Years Ramp",
                          "number": "R-00000268",
                          "subscriptionNumber": "A-S00000287"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRampsBySubscriptionKeyResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a ramp by subscription key",
        "tags": [
          "Ramps"
        ]
      }
    },
    "/v1/subscriptions/{subscriptionKey}/ramp-metrics": {
      "get": {
        "description": "**Note**: This operation is only available if you have the Ramps feature enabled. The [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://docs.zuora.com/en/entitlements/current-entitlements/zuora-editions) for pricing information coming October 2020.\n\nRetrieves key ramp metrics about a specified subscription, including the following metrics:\n\n* TCB, TCV in the Ramp level\n* TCB, TCV in the Interval level\n* TCB, TCV, Quantity, and MRR in Interval Metrics\n* Delta TCB, Delta TCV, Delta Quantity, and Delta MRR in Interval Delta Metrics\n\nSee [Key metrics for Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/F_Key_metrics_for_Ramps) for more information.\n",
        "operationId": "GET_RampMetricsBySubscriptionKey",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of an existing subscription.\n",
            "in": "path",
            "name": "subscriptionKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "rampMetrics": {
                        "description": "",
                        "discountTcb": 0,
                        "discountTcv": 0,
                        "grossTcb": 240,
                        "grossTcv": 240,
                        "intervals": [
                          {
                            "description": "",
                            "discountTcb": 0,
                            "discountTcv": 0,
                            "endDate": "2020-12-31",
                            "grossTcb": 120,
                            "grossTcv": 120,
                            "intervalMetrics": [
                              {
                                "chargeNumber": "C-00000202",
                                "discountTcb": 0,
                                "discountTcv": 0,
                                "endDate": "2020-12-31",
                                "grossTcb": 120,
                                "grossTcv": 120,
                                "mrr": [
                                  {
                                    "discount": 0,
                                    "endDate": "2020-12-31",
                                    "gross": 10,
                                    "net": 10,
                                    "startDate": "2020-01-01"
                                  }
                                ],
                                "netTcb": 120,
                                "netTcv": 120,
                                "productRatePlanChargeId": "40289f7b7115832f0171158e6dd906cd",
                                "quantity": 1,
                                "ratePlanChargeId": "40289f7b7321f5ce0173229d792c00c8",
                                "startDate": "2020-01-01",
                                "subscriptionNumber": "A-S00000287"
                              }
                            ],
                            "name": "Year 1",
                            "netTcb": 120,
                            "netTcv": 120,
                            "startDate": "2020-01-01"
                          },
                          {
                            "description": "",
                            "discountTcb": 0,
                            "discountTcv": 0,
                            "endDate": "2021-12-31",
                            "grossTcb": 120,
                            "grossTcv": 120,
                            "intervalMetrics": [
                              {
                                "chargeNumber": "C-00000202",
                                "discountTcb": 0,
                                "discountTcv": 0,
                                "endDate": "2021-12-31",
                                "grossTcb": 120,
                                "grossTcv": 120,
                                "mrr": [
                                  {
                                    "discount": 0,
                                    "endDate": "2021-12-31",
                                    "gross": 10,
                                    "net": 10,
                                    "startDate": "2021-01-01"
                                  }
                                ],
                                "netTcb": 120,
                                "netTcv": 120,
                                "productRatePlanChargeId": "40289f7b7115832f0171158e6dd906cd",
                                "quantity": 1,
                                "ratePlanChargeId": "40289f7b7321f5ce0173229d792c00c8",
                                "startDate": "2021-01-01",
                                "subscriptionNumber": "A-S00000287"
                              }
                            ],
                            "name": "Year 2",
                            "netTcb": 120,
                            "netTcv": 120,
                            "startDate": "2021-01-01"
                          }
                        ],
                        "name": "Two Years Ramp",
                        "netTcb": 240,
                        "netTcv": 240,
                        "number": "R-00000268"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRampMetricsBySubscriptionKeyResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List ramp metrics by subscription key",
        "tags": [
          "Ramps"
        ]
      }
    },
    "/v1/orders/{orderNumber}/ramp-metrics": {
      "get": {
        "description": "**Note**: This operation is only available if you have the Ramps feature enabled. The [Orders](https://docs.zuora.com/en/zuora-billing/manage-accounts-subscriptions-and-non-subscriptions/manage-subscription-transactions/orders/orders-introduction/overview-of-orders) feature must be enabled before you can access the [Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/A_Overview_of_Ramps_and_Ramp_Metrics) feature. The Ramps feature is available for customers with Enterprise and Nine editions by default. If you are a Growth customer, see [Zuora Editions](https://docs.zuora.com/en/entitlements/current-entitlements/zuora-editions) for pricing information coming October 2020.\n\nRetrieves key ramp metrics about a specified order, including the following metrics:\n\n* TCB, TCV in the Ramp level\n* TCB, TCV in the Interval level\n* TCB, TCV, Quantity, and MRR in Interval Metrics\n* Delta TCB, Delta TCV, Delta Quantity, and Delta MRR in Interval Delta Metrics\n\nSee [Key metrics for Ramps](https://knowledgecenter.zuora.com/Billing/Subscriptions/Orders/Ramps_and_Ramp_Metrics/F_Key_metrics_for_Ramps) for more information.\n",
        "operationId": "GET_RampMetricsByOrderNumber",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The number of the existing order.\n",
            "in": "path",
            "name": "orderNumber",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "rampMetrics": [
                        {
                          "description": "",
                          "discountTcb": 0,
                          "discountTcv": 0,
                          "grossTcb": 240,
                          "grossTcv": 240,
                          "intervals": [
                            {
                              "description": "",
                              "discountTcb": 0,
                              "discountTcv": 0,
                              "endDate": "2020-12-31",
                              "grossTcb": 120,
                              "grossTcv": 120,
                              "intervalDeltaMetrics": [
                                {
                                  "chargeNumber": "C-00000204",
                                  "deltaDiscountTcb": 0,
                                  "deltaDiscountTcv": 0,
                                  "deltaGrossTcb": 120,
                                  "deltaGrossTcv": 120,
                                  "deltaMrr": [
                                    {
                                      "discount": 0,
                                      "endDate": "2020-12-31",
                                      "gross": 10,
                                      "net": 10,
                                      "startDate": "2020-01-01"
                                    }
                                  ],
                                  "deltaNetTcb": 120,
                                  "deltaNetTcv": 120,
                                  "deltaQuantity": [
                                    {
                                      "amount": 1,
                                      "endDate": "2020-12-31",
                                      "startDate": "2020-01-01"
                                    }
                                  ],
                                  "productRatePlanChargeId": "40289f7b7115832f0171158e6dd906cd",
                                  "subscriptionNumber": "A-S00000289"
                                }
                              ],
                              "intervalMetrics": [
                                {
                                  "chargeNumber": "C-00000204",
                                  "discountTcb": 0,
                                  "discountTcv": 0,
                                  "endDate": "2020-12-31",
                                  "grossTcb": 120,
                                  "grossTcv": 120,
                                  "mrr": [
                                    {
                                      "discount": 0,
                                      "endDate": "2020-12-31",
                                      "gross": 10,
                                      "net": 10,
                                      "startDate": "2020-01-01"
                                    }
                                  ],
                                  "netTcb": 120,
                                  "netTcv": 120,
                                  "productRatePlanChargeId": "40289f7b7115832f0171158e6dd906cd",
                                  "quantity": 1,
                                  "ratePlanChargeId": "40289f7b7322a15901732392a904000a",
                                  "startDate": "2020-01-01",
                                  "subscriptionNumber": "A-S00000289"
                                }
                              ],
                              "name": "Year 1",
                              "netTcb": 120,
                              "netTcv": 120,
                              "startDate": "2020-01-01"
                            },
                            {
                              "description": "",
                              "discountTcb": 0,
                              "discountTcv": 0,
                              "endDate": "2021-12-31",
                              "grossTcb": 120,
                              "grossTcv": 120,
                              "intervalDeltaMetrics": [
                                {
                                  "chargeNumber": "C-00000204",
                                  "deltaDiscountTcb": 0,
                                  "deltaDiscountTcv": 0,
                                  "deltaGrossTcb": 120,
                                  "deltaGrossTcv": 120,
                                  "deltaMrr": [
                                    {
                                      "discount": 0,
                                      "endDate": "2021-12-31",
                                      "gross": 10,
                                      "net": 10,
                                      "startDate": "2021-01-01"
                                    }
                                  ],
                                  "deltaNetTcb": 120,
                                  "deltaNetTcv": 120,
                                  "deltaQuantity": [
                                    {
                                      "amount": 1,
                                      "endDate": "2021-12-31",
                                      "startDate": "2021-01-01"
                                    }
                                  ],
                                  "productRatePlanChargeId": "40289f7b7115832f0171158e6dd906cd",
                                  "subscriptionNumber": "A-S00000289"
                                }
                              ],
                              "intervalMetrics": [
                                {
                                  "chargeNumber": "C-00000204",
                                  "discountTcb": 0,
                                  "discountTcv": 0,
                                  "endDate": "2021-12-31",
                                  "grossTcb": 120,
                                  "grossTcv": 120,
                                  "mrr": [
                                    {
                                      "discount": 0,
                                      "endDate": "2021-12-31",
                                      "gross": 10,
                                      "net": 10,
                                      "startDate": "2021-01-01"
                                    }
                                  ],
                                  "netTcb": 120,
                                  "netTcv": 120,
                                  "productRatePlanChargeId": "40289f7b7115832f0171158e6dd906cd",
                                  "quantity": 1,
                                  "ratePlanChargeId": "40289f7b7322a15901732392a904000a",
                                  "startDate": "2021-01-01",
                                  "subscriptionNumber": "A-S00000289"
                                }
                              ],
                              "name": "Year 2",
                              "netTcb": 120,
                              "netTcv": 120,
                              "startDate": "2021-01-01"
                            }
                          ],
                          "name": "Two Years Ramp",
                          "netTcb": 240,
                          "netTcv": 240,
                          "number": "R-00000270"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRampMetricsByOrderNumberResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List ramp metrics by order number",
        "tags": [
          "Ramps"
        ]
      }
    },
    "/v1/subscriptions/preview": {
      "post": {
        "description": "The REST API reference describes how to create a new subscription in preview mode. This call does not require a valid customer account. It can be used to show potential new customers a preview of a subscription with complete details and charges before creating an account, or to let existing customers preview a subscription with all charges before committing.\n\n\n**Notes**: \n\n- The response of the Preview Subscription call is based on the REST API minor version you set in the request header. The response structure might be different if you use different minor version numbers. \n\n\n- If you have the Invoice Settlement feature enabled, we recommend that you set the `Zuora-Version` parameter to `207.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). Otherwise, an error is returned.\n\n\n- Default values for **customerAcceptanceDate** and **serviceActivationDate** are set as follows.\n\n\n|         | serviceActivationDate(SA) specified          | serviceActivationDate (SA) NOT specified  |\n| ------------- |:-------------| :-----|\n| customerAcceptanceDate (CA) specified | SA uses value in the request call; CA uses value in the request call| CA uses value in the request call;SA uses CE as default |\n| customerAcceptanceDate (CA) NOT specified | SA uses value in the request call; CA uses SA as default  |   SA and CA use CE as default |\n",
        "operationId": "POST_PreviewSubscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTSubscriptionPreviewType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "contractedMrr": 14.99,
                      "totalContractedValue": 179.88,
                      "amount": 14.99,
                      "amountWithoutTax": 14.99,
                      "taxAmount": 0,
                      "invoiceTargetDate": "2024-07-11",
                      "documentDate": "2024-07-11",
                      "invoiceItems": [
                        {
                          "serviceStartDate": "2024-07-01",
                          "serviceEndDate": "2024-07-31",
                          "chargeAmount": 14.99,
                          "taxAmount": 0,
                          "chargeDescription": "",
                          "chargeName": "Monthly Fee",
                          "productName": "Music Service",
                          "productRatePlanChargeId": "8ad097b4909708e001909b41bb085d38",
                          "quantity": 1,
                          "unitOfMeasure": ""
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTSubscriptionPreviewResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Preview a subscription",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/subscriptions/{subscription-key}/preview": {
      "post": {
        "description": "\nDescribes how to preview an existing subscription to view information about existing and future invoices or credit memos. \n     \n**Note**: The `Zuora-Version` parameter must be `207.0` or later.\n",
        "operationId": "PreviewExistingSubscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "\nThe minor version of the Zuora REST API. \n\nYou need to set this parameter if you use the following fields:\n* targetDate\n* includeExistingDraftDocItems\n* previewType\n* taxationItems\n\n\nIf you have the Invoice Settlement feature enabled, you need to specify this parameter. Otherwise, an error is returned.\n",
            "in": "header",
            "name": "Zuora-Version",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Subscription number or ID",
            "in": "path",
            "name": "subscription-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreviewExistingSubscriptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "invoices": [
                    {
                      "invoiceNumber": "Preview Invoice",
                      "amount": 10,
                      "amountWithoutTax": 10,
                      "taxAmount": 0,
                      "targetDate": "2024-02-01",
                      "status": null,
                      "isFromExistingInvoice": false,
                      "invoiceItems": [
                        {
                          "serviceStartDate": "2024-01-01",
                          "serviceEndDate": "2024-01-31",
                          "amountWithoutTax": 10,
                          "taxAmount": 0,
                          "chargeDescription": "Recurring Flat Fee Pricing",
                          "chargeName": "Recurring_Flat Fee Pricing1628472350306",
                          "chargeNumber": "C-0000001",
                          "productName": "P_1628472348863",
                          "productRatePlanChargeId": "402881547b216168017b2884182f12e7",
                          "processingType": "Charge",
                          "unitPrice": 10,
                          "quantity": 1,
                          "unitOfMeasure": null
                        }
                      ]
                    }
                  ],
                  "creditMemos": [
                    {
                      "creditMemoNumber": "Preview Credit Memo",
                      "amount": 10,
                      "amountWithoutTax": 10,
                      "taxAmount": 0,
                      "targetDate": "2024-02-01",
                      "status": null,
                      "isFromExistingCreditMemo": false,
                      "creditMemoItems": [
                        {
                          "serviceStartDate": "2024-01-01",
                          "serviceEndDate": "2024-01-31",
                          "amountWithoutTax": 10,
                          "taxAmount": 0,
                          "chargeDescription": "Recurring Flat Fee Pricing",
                          "chargeName": "Recurring_Flat Fee Pricing1628472350306",
                          "chargeNumber": "C-0000001",
                          "productName": "P_1628472348863",
                          "productRatePlanChargeId": "402881547b216168017b2884182f12e7",
                          "processingType": "Charge",
                          "unitPrice": 10,
                          "quantity": 1,
                          "unitOfMeasure": null
                        }
                      ]
                    }
                  ],
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/PreviewExistingSubscriptionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Content_Encoding"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Reset"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Preview a subscription by subscription key",
        "tags": [
          "Subscriptions"
        ],
        "x-accepts": "application/json",
        "x-codegen-request-body-name": "Request",
        "x-content-type": "application/json"
      }
    },
    "/v1/subscriptions": {
      "post": {
        "description": "This operation describes how to create a new subscription for an existing customer account.\n\n### Notes\n\nIf you have the Invoice Settlement feature enabled, it is best practice to set\n\nthe `Zuora-Version` parameter to `211.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version).\n\nOtherwise, an error occurs.\n\n\nDefault values for **customerAcceptanceDate** and **serviceActivationDate** are\n\nset as follows. This API operation does not support creating a pending subscription.\n\n|        | serviceActivationDate(SA) specified          | serviceActivationDate (SA) NOT specified  |\n| ------------- |:------------- | :-----|\n| customerAcceptanceDate (CA) specified| SA uses value in the request call; CA uses value in the request call| CA uses value in the request call;SA uses CE as default |\n| customerAcceptanceDate (CA) NOT specified      | SA uses value in the request call; CA uses SA as default |   SA and CA use CE as default |\n\n\nThis call supports a subset of the functionality of our [Create an order](https://developer.zuora.com/v1-api-reference/api/operation/POST_Order/) call. \nWe recommend using \"Create an order\" instead of this call because the Orders call has the following advantages: \n- Provides options for managing the entire subscription lifecycle from creation through to cancellation using different order actions. \n- Allows the creation or modifying of multiple subscriptions in a single order. \n- Allows a single order to combine both recurring subscription digital goods or services with order line items for physical goods.\n- Orders are treated as atomic transactions. If any part fails, the entire order and subscription changes are rolled back.\n\nThis call can be used to create a single subscription and there are no deprecation plans for this call. We will continue to support this call.\n",
        "operationId": "POST_Subscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTSubscriptionType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "subscriptionId": "8ad087d290a5e7330190b98577936eaf",
                      "subscriptionNumber": "A-S00000141",
                      "contractedMrr": 14.99,
                      "totalContractedValue": 179.88
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTSubscriptionResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a subscription",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/subscriptions/accounts/{account-key}": {
      "get": {
        "description": "Retrieves all subscriptions associated with the specified account. Zuora only returns the latest version of the subscriptions.\n\nSubscription data is returned in reverse chronological order based on `updatedDate`. Note that the rate plans inside the subscriptions are not sorted specifically and are returned in a random order.\n",
        "operationId": "GET_SubscriptionsByAccount",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "\nPossible values are:\n* an account number\n* an account ID\n",
            "in": "path",
            "name": "account-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The segmented rate plan charges.\n\nWhen an amendment results in a change to a charge, Zuora creates a segmented rate plan charge. Use this field to track segment charges.\n\nPossible values are:\n\n* __last-segment__: (Default) The last rate plan charge on the subscription, that is, the last segmented rate plan charge with the maximum start and end dates.\n * __current-segment__: The segmented charge that is active on today’s date (effectiveStartDate <= today’s date <= effectiveEndDate).\n \n * __all-segments__: All the segmented charges. The `chargeSegments` field is returned in the response. The `chargeSegments` field contains an array of the charge information for all the charge segments.\n\n * __specific-segment&as-of-date=date__: The segmented charge that is active on a date you specified (effectiveStartDate <= specific date < effectiveEndDate). The format of the date is yyyy-mm-dd.\n",
            "in": "query",
            "name": "charge-detail",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The date for `charge-detail`. It is only available when `charge-detail` is `specific-segment`.\n\nThe date should be in the format `YYYY-MM-DD`.\n",
            "in": "query",
            "name": "as-of-date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "When a rate plan charge has multiple segments, the last segment is returned by default. \n\nIf this charge has been removed before the start date of the last segment (the latest one), with this parameter set to `true`, this charge is excluded from the response; \nIf all the charges under a rate plan are excluded, the rate plan is not returned in the response.\n\nThe default value is `false`.\n",
            "in": "query",
            "name": "exclude-rate-plans-with-no-charges",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": " If the `getDetailedMetrics` field is `true`, `contractedNetMrr`, `asOfDayGrossMrr`, `asOfDayNetMrr`, and `netTotalContractedValue` will be in the response.\nThe default value is `false`. ",
            "in": "query",
            "name": "getDetailedMetrics",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "description": "\nThe date for detailed metrics. Only available when `getDetailedMetrics` is `true`. The date should be in the format `YYYY-MM-DD`.\nThe default value is the current date. ",
            "in": "query",
            "name": "asOfDay",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "subscriptions": [
                        {
                          "accountId": "8a8082c45aa81b51015ad64396090f5c",
                          "accountName": "ABCD",
                          "accountNumber": "A00002641",
                          "autoRenew": true,
                          "billToContact": {
                            "address1": "",
                            "address2": "",
                            "city": "",
                            "country": null,
                            "county": null,
                            "fax": "",
                            "firstName": "Test",
                            "homePhone": "",
                            "id": "2c9081a03c6d7b51013c6d7e46c80a17",
                            "lastName": "Test",
                            "mobilePhone": "",
                            "nickname": "",
                            "otherPhone": "",
                            "otherPhoneType": null,
                            "personalEmail": "",
                            "state": "",
                            "taxRegion": null,
                            "workEmail": "contact@example.com",
                            "workPhone": "",
                            "zipCode": ""
                          },
                          "contractEffectiveDate": "2017-01-01",
                          "contractedMrr": 8.33,
                          "contractedNetMrr": 8.33,
                          "asOfDayGrossMrr": 8.33,
                          "asOfDayNetMrr": 8.33,
                          "netTotalContractedValue": 8.33,
                          "currency": "USD",
                          "currentTerm": 12,
                          "currentTermPeriodType": "Month",
                          "customerAcceptanceDate": "2017-01-01",
                          "id": "8a8082c45aa81b51015ad68743ec0fdb",
                          "initialTerm": 12,
                          "initialTermPeriodType": "Month",
                          "invoiceGroupNumber": "N-0001",
                          "invoiceOwnerAccountId": "8a8082c45aa81b51015ad64396090f5c",
                          "invoiceOwnerAccountName": "ABCD",
                          "invoiceOwnerAccountNumber": "A00002641",
                          "invoiceScheduleId": "ec6f0d5dc8af451ab95343fb3c588c1a",
                          "invoiceSeparately": false,
                          "invoiceTemplateId": "2c9081a03c638994013c63978baf002b",
                          "invoiceTemplateName": "InvoiceTemplateName",
                          "notes": "",
                          "paymentTerm": "Net 30",
                          "ratePlans": [
                            {
                              "id": "8a8082c45aa81b51015ad68744030fe3",
                              "productId": "8a8082c45aa81b51015ad5a2d07d0e89",
                              "productName": "ABC",
                              "productRatePlanId": "8a8082c45aa81b51015ad5a473fb0e8d",
                              "productSku": "SKU-00000987",
                              "contractedNetMrr": 8.33,
                              "contractedMrr": 8.33,
                              "asOfDayGrossMrr": 8.33,
                              "asOfDayNetMrr": 8.33,
                              "netTotalContractedValue": 8.33,
                              "ratePlanCharges": [
                                {
                                  "applyDiscountTo": null,
                                  "billingDay": "DefaultFromCustomer",
                                  "billingPeriod": "Annual",
                                  "billingPeriodAlignment": "AlignToCharge",
                                  "billingTiming": "IN_ADVANCE",
                                  "chargedThroughDate": null,
                                  "currency": "USD",
                                  "description": "",
                                  "discountAmount": null,
                                  "discountApplyDetails": null,
                                  "discountClass": null,
                                  "discountLevel": null,
                                  "discountPercentage": null,
                                  "dmrc": 8.333333,
                                  "done": false,
                                  "dtcv": 100,
                                  "effectiveEndDate": "2018-01-01",
                                  "effectiveStartDate": "2017-01-01",
                                  "endDateCondition": "Subscription_End",
                                  "id": "8a8082c45aa81b51015ad68744160fe4",
                                  "includedUnits": null,
                                  "invoiceScheduleId": "8a8082c45aa81b51015ad68744240ff5",
                                  "listPriceBase": "Per_Billing_Period",
                                  "model": "FlatFee",
                                  "mrr": 8.333333,
                                  "name": "Annual Charge",
                                  "number": "C-00032238",
                                  "numberOfPeriods": null,
                                  "originalChargeId": "8a8082c45aa81b51015ad68744160fe4",
                                  "overageCalculationOption": null,
                                  "overagePrice": null,
                                  "overageUnusedUnitsCreditOption": null,
                                  "price": 100,
                                  "priceChangeOption": "NoChange",
                                  "priceIncreasePercentage": null,
                                  "pricingSummary": "USD100",
                                  "processedThroughDate": null,
                                  "productRatePlanChargeId": "8a8082c45aa81b51015ad5a655c00e8f",
                                  "quantity": 1,
                                  "segment": 1,
                                  "smoothingModel": null,
                                  "specificBillingPeriod": null,
                                  "specificEndDate": null,
                                  "tcv": 100,
                                  "tiers": null,
                                  "triggerDate": null,
                                  "triggerEvent": "ContractEffective",
                                  "type": "Recurring",
                                  "unusedUnitsCreditRates": null,
                                  "uom": null,
                                  "upToPeriods": null,
                                  "upToPeriodsType": null,
                                  "usageRecordRatingOption": null,
                                  "version": 1
                                },
                                {
                                  "applyDiscountTo": "ONETIMERECURRINGUSAGE",
                                  "billingDay": "DefaultFromCustomer",
                                  "billingPeriod": "Month",
                                  "billingPeriodAlignment": "AlignToCharge",
                                  "billingTiming": null,
                                  "chargedThroughDate": null,
                                  "currency": "USD",
                                  "description": "",
                                  "discountAmount": 10,
                                  "discountApplyDetails": [
                                    {
                                      "appliedProductName": "ABC",
                                      "appliedProductRatePlanChargeId": "8a8082c45aa81b51015ad5a655c00e8f",
                                      "appliedProductRatePlanChargeName": "Annual Charge",
                                      "appliedProductRatePlanId": "8a8082c45aa81b51015ad5a473fb0e8d",
                                      "appliedProductRatePlanName": "RatePlan 1"
                                    },
                                    {
                                      "appliedProductName": "ABC",
                                      "appliedProductRatePlanChargeId": "8a8082c45aa81b51015ad5a655c00e8f",
                                      "appliedProductRatePlanChargeName": "Annual Charge",
                                      "appliedProductRatePlanId": "8a8082c45aa81b51015ad5a473fb0e8d",
                                      "appliedProductRatePlanName": "RatePlan 1"
                                    }
                                  ],
                                  "discountClass": "VIP Discount",
                                  "discountLevel": "subscription",
                                  "discountPercentage": null,
                                  "dmrc": 0,
                                  "done": false,
                                  "dtcv": 0,
                                  "effectiveEndDate": "2018-01-01",
                                  "effectiveStartDate": "2017-01-01",
                                  "endDateCondition": "Subscription_End",
                                  "id": "8a8082c45aa81b51015ad68744240fe5",
                                  "includedUnits": null,
                                  "invoiceScheduleId": "8a8082c45aa81b51015ad68744240ff5",
                                  "listPriceBase": null,
                                  "model": "DiscountFixedAmount",
                                  "mrr": 0,
                                  "name": "Discount-Fixed 10",
                                  "number": "C-00032239",
                                  "numberOfPeriods": null,
                                  "originalChargeId": "8a8082c45aa81b51015ad68744240fe5",
                                  "overageCalculationOption": null,
                                  "overagePrice": null,
                                  "overageUnusedUnitsCreditOption": null,
                                  "price": null,
                                  "priceChangeOption": null,
                                  "priceIncreasePercentage": null,
                                  "pricingSummary": "USD10 fixed amount discount",
                                  "processedThroughDate": null,
                                  "productRatePlanChargeId": "8a8082c45aa81b51015ad683bc590fd8",
                                  "quantity": null,
                                  "segment": 1,
                                  "smoothingModel": null,
                                  "specificBillingPeriod": null,
                                  "specificEndDate": null,
                                  "tcv": 0,
                                  "tiers": null,
                                  "triggerDate": null,
                                  "triggerEvent": "ContractEffective",
                                  "type": "Recurring",
                                  "unusedUnitsCreditRates": null,
                                  "uom": null,
                                  "upToPeriods": null,
                                  "upToPeriodsType": null,
                                  "usageRecordRatingOption": null,
                                  "version": 1
                                },
                                {
                                  "amendedByOrderOn": null,
                                  "applyDiscountTo": null,
                                  "billingDay": "DefaultFromCustomer",
                                  "billingPeriod": "Month",
                                  "billingPeriodAlignment": "AlignToCharge",
                                  "billingTiming": "IN_ADVANCE",
                                  "chargeModelConfiguration": null,
                                  "chargedThroughDate": null,
                                  "currency": "USD",
                                  "description": "",
                                  "discountAmount": null,
                                  "discountApplyDetails": null,
                                  "discountClass": null,
                                  "discountLevel": null,
                                  "discountPercentage": null,
                                  "dmrc": 38.571428571,
                                  "done": false,
                                  "dtcv": 468,
                                  "effectiveEndDate": "2026-01-01",
                                  "effectiveStartDate": "2024-12-31",
                                  "endDateCondition": "Subscription_End",
                                  "id": "4028818386ba85070186bab54f99573d",
                                  "includedUnits": null,
                                  "inputArgumentId": null,
                                  "invoiceScheduleId": "8a8082c45aa81b51015ad68744240ff5",
                                  "listPriceBase": "Per_Billing_Period",
                                  "model": "Delivery",
                                  "mrr": 38.571428571,
                                  "name": "Delivery Charge",
                                  "number": "C-00032240",
                                  "numberOfDeliveries": 52,
                                  "numberOfPeriods": null,
                                  "originalChargeId": "4028818386ba85070186bab54f065731",
                                  "originalOrderDate": "2023-01-01",
                                  "overageCalculationOption": null,
                                  "overagePrice": null,
                                  "overageUnusedUnitsCreditOption": null,
                                  "price": 9,
                                  "priceChangeOption": null,
                                  "priceIncreasePercentage": null,
                                  "pricingSummary": "",
                                  "processedThroughDate": null,
                                  "productRatePlanChargeId": "4028818386b61be50186b6293eb30017",
                                  "quantity": 1,
                                  "ratingGroup": null,
                                  "segment": 3,
                                  "smoothingModel": null,
                                  "specificBillingPeriod": null,
                                  "specificEndDate": null,
                                  "subscriptionChargeDeliverySchedule": {
                                    "dayOfMonth": null,
                                    "frequency": "Weekly",
                                    "friday": false,
                                    "monday": false,
                                    "monthOfYear": null,
                                    "saturday": false,
                                    "sunday": true,
                                    "thursday": false,
                                    "tuesday": false,
                                    "wednesday": false
                                  },
                                  "subscriptionChargeIntervalPricing": [
                                    {
                                      "duration": 365,
                                      "price": 5,
                                      "sequence": 1,
                                      "subscriptionChargeIntervalPriceTiers": [],
                                      "type": "Day"
                                    },
                                    {
                                      "duration": 365,
                                      "price": 7,
                                      "sequence": 2,
                                      "subscriptionChargeIntervalPriceTiers": [],
                                      "type": "Day"
                                    },
                                    {
                                      "duration": null,
                                      "price": 9,
                                      "sequence": 3,
                                      "subscriptionChargeIntervalPriceTiers": [],
                                      "type": "Infinity"
                                    }
                                  ],
                                  "tcv": 468,
                                  "tiers": null,
                                  "triggerDate": null,
                                  "triggerEvent": "ContractEffective",
                                  "type": "Recurring",
                                  "unusedUnitsCreditRates": null,
                                  "uom": null,
                                  "upToPeriods": null,
                                  "upToPeriodsType": null,
                                  "usageRecordRatingOption": null,
                                  "version": 1
                                }
                              ],
                              "ratePlanName": "RatePlan 1"
                            }
                          ],
                          "renewalSetting": "RENEW_WITH_SPECIFIC_TERM",
                          "renewalTerm": 12,
                          "renewalTermPeriodType": "Month",
                          "revision": "1.0",
                          "sequenceSetId": "6abcc30846de11e990900242ac1f0003",
                          "sequenceSetName": "DEFAULT",
                          "serviceActivationDate": "2017-01-01",
                          "soldToContact": {
                            "address1": "",
                            "address2": "",
                            "city": "",
                            "country": null,
                            "county": null,
                            "fax": "",
                            "firstName": "Test",
                            "homePhone": "",
                            "id": "2c9081a03c6d7b51013c6d7e46c80a17",
                            "lastName": "Test",
                            "mobilePhone": "",
                            "nickname": "",
                            "otherPhone": "",
                            "otherPhoneType": null,
                            "personalEmail": "",
                            "state": "",
                            "taxRegion": null,
                            "workEmail": "contact@example.com",
                            "workPhone": "",
                            "zipCode": ""
                          },
                          "status": "Active",
                          "subscriptionNumber": "A-S00007412",
                          "subscriptionStartDate": "2017-01-01",
                          "termEndDate": "2018-01-01",
                          "termStartDate": "2017-01-01",
                          "termType": "TERMED",
                          "totalContractedValue": 100,
                          "version": 1
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETSubscriptionWrapper"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List subscriptions by account key",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/subscriptions/{subscription-key}": {
      "get": {
        "description": "This REST API reference describes how to retrieve detailed information\nabout a specified subscription in the latest version.\n",
        "operationId": "GET_SubscriptionsByKey",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Possible values are:\n  * a subscription number\n  * a subscription ID\n",
            "in": "path",
            "name": "subscription-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "\nThe segmented rate plan charges. When an amendment results in a change to a charge, Zuora creates a segmented rate plan charge. Use this field to track segment charges.\n\nPossible values are:\n\n * __last-segment__: (Default) The last rate plan charge on the subscription, that is, the last segmented rate plan charge with the maximum start and end dates.\n * __current-segment__: The segmented charge that is active on today’s date (effectiveStartDate <= today’s date <= effectiveEndDate).\n \n * __all-segments__: All the segmented charges. The `ratePlans` > `ratePlanCharges` >`chargeSegments` nested field is returned in the response. The `chargeSegments` field contains an array of the charge information for all the charge segments.\n\n * __specific-segment__: Use this value together with `as-of-date={specificDate}`. The segmented charge that is active on a date you specified ((specific date = effectiveStartDate) OR (effectiveStartDate < specific date < effectiveEndDate)) is returned. The format of the date is `yyyy-mm-dd`.\n",
            "in": "query",
            "name": "charge-detail",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The date for `charge-detail`. It is only available when `charge-detail` is `specific-segment`.\n\nThe date should be in the format `YYYY-MM-DD`.\n",
            "in": "query",
            "name": "as-of-date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "When a rate plan charge has multiple segments, the last segment is returned by default. \n\nIf this charge has been removed before the start date of the last segment (the latest one), with this parameter set to `true`, this charge is excluded from the response; \nIf all the charges under a rate plan are excluded, the rate plan is not returned in the response.\n\n\nThe default value is `false`.\n",
            "in": "query",
            "name": "exclude-rate-plans-with-no-charges",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": " If the `getDetailedMetrics` field is `true`, `contractedNetMrr`, `asOfDayGrossMrr`, `asOfDayNetMrr`, and `netTotalContractedValue` will be in the response.\nThe default value is `false`. ",
            "in": "query",
            "name": "getDetailedMetrics",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "asOfDay",
            "description": "The date for detailed metrics. Only available when `getDetailedMetrics` is `true`.\nThe date should be in the format `YYYY-MM-DD`.\n\nThe default value is the current date. \n",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Retrieves the invoice owner of a subscription. If this parameter is set to `true`, the invoice owner account details `invoiceOwnerAccountDetails` will be in the response. ",
            "in": "query",
            "name": "getInvoiceOwnerDetails",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Retrieves the owner of a subscription. If this parameter is set to `true`, the subscription owner account details `accountOwnerDetails` will be in the response. ",
            "in": "query",
            "name": "getSubscriptionOwnerDetails",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "8a8082c45aa81b51015ad64396090f5c",
                      "accountName": "ABCD",
                      "accountNumber": "A00002641",
                      "accountOwnerDetails": {
                        "accountNumber": "A00000001",
                        "batch": "Batch1",
                        "communicationProfileId": "303d186840e611df817c002185d714e1",
                        "crmId": "",
                        "id": "402892c74c9193cd014c91d35b0a0132",
                        "invoiceTemplateId": null,
                        "name": "Test",
                        "notes": "",
                        "partnerAccount": false,
                        "profileNumber": "CP-00000012",
                        "salesRep": "",
                        "sequenceSetId": null,
                        "status": "Active",
                        "summaryStatementTemplateId": null,
                        "purchaseOrderNumber": ""
                      },
                      "invoiceOwnerAccountDetails": {
                        "accountNumber": "A00000001",
                        "batch": "Batch1",
                        "communicationProfileId": "303d186840e611df817c002185d714e1",
                        "crmId": "",
                        "id": "402892c74c9193cd014c91d35b0a0132",
                        "invoiceTemplateId": null,
                        "name": "Test",
                        "notes": "",
                        "partnerAccount": false,
                        "profileNumber": "CP-00000012",
                        "salesRep": "",
                        "sequenceSetId": null,
                        "status": "Active"
                      },
                      "autoRenew": true,
                      "contractEffectiveDate": "2017-01-01",
                      "contractedMrr": 8.33,
                      "contractedNetMrr": 8.33,
                      "asOfDayGrossMrr": 8.33,
                      "asOfDayNetMrr": 8.33,
                      "netTotalContractedValue": 8.33,
                      "currency": "USD",
                      "currentTerm": 12,
                      "currentTermPeriodType": "Month",
                      "customerAcceptanceDate": "2017-01-01",
                      "id": "8a8082c45aa81b51015ad68743ec0fdb",
                      "initialTerm": 12,
                      "initialTermPeriodType": "Month",
                      "invoiceGroupNumber": "N-0001",
                      "invoiceOwnerAccountId": "8a8082c45aa81b51015ad64396090f5c",
                      "invoiceOwnerAccountName": "ABCD",
                      "invoiceOwnerAccountNumber": "A00002641",
                      "invoiceScheduleId": "ec6f0d5dc8af451ab95343fb3c588c1a",
                      "invoiceSeparately": false,
                      "invoiceTemplateId": "2c9081a03c638994013c63978baf002b",
                      "invoiceTemplateName": "InvoiceTemplateName",
                      "notes": "",
                      "paymentTerm": "Net 30",
                      "ratePlans": [
                        {
                          "id": "8a8082c45aa81b51015ad68744030fe3",
                          "productId": "8a8082c45aa81b51015ad5a2d07d0e89",
                          "productName": "ABC",
                          "productRatePlanId": "8a8082c45aa81b51015ad5a473fb0e8d",
                          "productSku": "SKU-00000987",
                          "contractedNetMrr": 8.33,
                          "contractedMrr": 8.33,
                          "asOfDayGrossMrr": 8.33,
                          "asOfDayNetMrr": 8.33,
                          "netTotalContractedValue": 8.33,
                          "ratePlanCharges": [
                            {
                              "applyDiscountTo": null,
                              "billingDay": "DefaultFromCustomer",
                              "billingPeriod": "Annual",
                              "billingPeriodAlignment": "AlignToCharge",
                              "billingTiming": "IN_ADVANCE",
                              "chargedThroughDate": null,
                              "currency": "USD",
                              "description": "",
                              "discountAmount": null,
                              "discountApplyDetails": null,
                              "discountClass": null,
                              "discountLevel": null,
                              "discountPercentage": null,
                              "dmrc": 8.333333,
                              "done": false,
                              "dtcv": 100,
                              "effectiveEndDate": "2018-01-01",
                              "effectiveStartDate": "2017-01-01",
                              "endDateCondition": "Subscription_End",
                              "id": "8a8082c45aa81b51015ad68744160fe4",
                              "includedUnits": null,
                              "invoiceScheduleId": "8a8082c45aa81b51015ad68744240ff5",
                              "listPriceBase": "Per_Billing_Period",
                              "model": "FlatFee",
                              "mrr": 8.333333,
                              "name": "Annual Charge",
                              "number": "C-00032238",
                              "numberOfPeriods": null,
                              "originalChargeId": "8a8082c45aa81b51015ad68744160fe4",
                              "overageCalculationOption": null,
                              "overagePrice": null,
                              "overageUnusedUnitsCreditOption": null,
                              "price": 100,
                              "priceChangeOption": "NoChange",
                              "priceIncreasePercentage": null,
                              "pricingSummary": "USD100",
                              "processedThroughDate": null,
                              "productRatePlanChargeId": "8a8082c45aa81b51015ad5a655c00e8f",
                              "quantity": 1,
                              "segment": 1,
                              "smoothingModel": null,
                              "specificBillingPeriod": null,
                              "specificEndDate": null,
                              "tcv": 100,
                              "tiers": null,
                              "triggerDate": null,
                              "triggerEvent": "ContractEffective",
                              "type": "Recurring",
                              "unusedUnitsCreditRates": null,
                              "uom": null,
                              "upToPeriods": null,
                              "upToPeriodsType": null,
                              "usageRecordRatingOption": null,
                              "version": 1
                            },
                            {
                              "applyDiscountTo": "ONETIMERECURRINGUSAGE",
                              "billingDay": "DefaultFromCustomer",
                              "billingPeriod": "Month",
                              "billingPeriodAlignment": "AlignToCharge",
                              "billingTiming": null,
                              "chargedThroughDate": null,
                              "currency": "USD",
                              "description": "",
                              "discountAmount": 10,
                              "discountApplyDetails": [
                                {
                                  "appliedProductName": "ABC",
                                  "appliedProductRatePlanChargeId": "8a8082c45aa81b51015ad5a655c00e8f",
                                  "appliedProductRatePlanChargeName": "Annual Charge",
                                  "appliedProductRatePlanId": "8a8082c45aa81b51015ad5a473fb0e8d",
                                  "appliedProductRatePlanName": "RatePlan 1"
                                }
                              ],
                              "discountClass": "VIP Discount",
                              "discountLevel": "subscription",
                              "discountPercentage": null,
                              "dmrc": 0,
                              "done": false,
                              "dtcv": 0,
                              "effectiveEndDate": "2018-01-01",
                              "effectiveStartDate": "2017-01-01",
                              "endDateCondition": "Subscription_End",
                              "id": "8a8082c45aa81b51015ad68744240fe5",
                              "includedUnits": null,
                              "invoiceScheduleId": "8a8082c45aa81b51015ad68744240ff5",
                              "listPriceBase": null,
                              "model": "DiscountFixedAmount",
                              "mrr": 0,
                              "name": "Discount-Fixed 10",
                              "number": "C-00032239",
                              "numberOfPeriods": null,
                              "originalChargeId": "8a8082c45aa81b51015ad68744240fe5",
                              "overageCalculationOption": null,
                              "overagePrice": null,
                              "overageUnusedUnitsCreditOption": null,
                              "price": null,
                              "priceChangeOption": null,
                              "priceIncreasePercentage": null,
                              "pricingSummary": "USD10 fixed amount discount",
                              "processedThroughDate": null,
                              "productRatePlanChargeId": "8a8082c45aa81b51015ad683bc590fd8",
                              "quantity": null,
                              "segment": 1,
                              "smoothingModel": null,
                              "specificBillingPeriod": null,
                              "specificEndDate": null,
                              "tcv": 0,
                              "tiers": null,
                              "triggerDate": null,
                              "triggerEvent": "ContractEffective",
                              "type": "Recurring",
                              "unusedUnitsCreditRates": null,
                              "uom": null,
                              "upToPeriods": null,
                              "upToPeriodsType": null,
                              "usageRecordRatingOption": null,
                              "version": 1
                            },
                            {
                              "amendedByOrderOn": null,
                              "applyDiscountTo": null,
                              "billingDay": "DefaultFromCustomer",
                              "billingPeriod": "Month",
                              "billingPeriodAlignment": "AlignToCharge",
                              "billingTiming": "IN_ADVANCE",
                              "chargeModelConfiguration": null,
                              "chargedThroughDate": null,
                              "currency": "USD",
                              "description": "",
                              "discountAmount": null,
                              "discountApplyDetails": null,
                              "discountClass": null,
                              "discountLevel": null,
                              "discountPercentage": null,
                              "dmrc": 38.571428571,
                              "done": false,
                              "dtcv": 468,
                              "effectiveEndDate": "2026-01-01",
                              "effectiveStartDate": "2024-12-31",
                              "endDateCondition": "Subscription_End",
                              "id": "4028818386ba85070186bab54f99573d",
                              "includedUnits": null,
                              "inputArgumentId": null,
                              "invoiceScheduleId": "8a8082c45aa81b51015ad68744240ff5",
                              "listPriceBase": "Per_Billing_Period",
                              "model": "Delivery",
                              "mrr": 38.571428571,
                              "name": "Delivery Charge",
                              "number": "C-00032240",
                              "numberOfDeliveries": 52,
                              "numberOfPeriods": null,
                              "originalChargeId": "4028818386ba85070186bab54f065731",
                              "originalOrderDate": "2023-01-01",
                              "overageCalculationOption": null,
                              "overagePrice": null,
                              "overageUnusedUnitsCreditOption": null,
                              "price": 9,
                              "priceChangeOption": null,
                              "priceIncreasePercentage": null,
                              "pricingSummary": "",
                              "processedThroughDate": null,
                              "productRatePlanChargeId": "4028818386b61be50186b6293eb30017",
                              "quantity": 1,
                              "ratingGroup": null,
                              "segment": 3,
                              "smoothingModel": null,
                              "specificBillingPeriod": null,
                              "specificEndDate": null,
                              "subscriptionChargeDeliverySchedule": {
                                "dayOfMonth": null,
                                "frequency": "Weekly",
                                "friday": false,
                                "monday": false,
                                "monthOfYear": null,
                                "saturday": false,
                                "sunday": true,
                                "thursday": false,
                                "tuesday": false,
                                "wednesday": false
                              },
                              "subscriptionChargeIntervalPricing": [
                                {
                                  "duration": 365,
                                  "price": 5,
                                  "sequence": 1,
                                  "subscriptionChargeIntervalPriceTiers": [],
                                  "type": "Day"
                                },
                                {
                                  "duration": 365,
                                  "price": 7,
                                  "sequence": 2,
                                  "subscriptionChargeIntervalPriceTiers": [],
                                  "type": "Day"
                                },
                                {
                                  "duration": null,
                                  "price": 9,
                                  "sequence": 3,
                                  "subscriptionChargeIntervalPriceTiers": [],
                                  "type": "Infinity"
                                }
                              ],
                              "tcv": 468,
                              "tiers": null,
                              "triggerDate": null,
                              "triggerEvent": "ContractEffective",
                              "type": "Recurring",
                              "unusedUnitsCreditRates": null,
                              "uom": null,
                              "upToPeriods": null,
                              "upToPeriodsType": null,
                              "usageRecordRatingOption": null,
                              "version": 1
                            }
                          ],
                          "ratePlanName": "RatePlan 1"
                        }
                      ],
                      "renewalSetting": "RENEW_WITH_SPECIFIC_TERM",
                      "renewalTerm": 12,
                      "renewalTermPeriodType": "Month",
                      "revision": "1.0",
                      "sequenceSetId": "6abcc30846de11e990900242ac1f0003",
                      "sequenceSetName": "DEFAULT",
                      "serviceActivationDate": "2017-01-01",
                      "billToContact": {
                        "address1": "",
                        "address2": "",
                        "city": "",
                        "country": null,
                        "county": null,
                        "fax": "",
                        "firstName": "Test",
                        "homePhone": "",
                        "id": "2c9081a03c6d7b51013c6d7e46c80a17",
                        "lastName": "Test",
                        "mobilePhone": "",
                        "nickname": "",
                        "otherPhone": "",
                        "otherPhoneType": null,
                        "personalEmail": "",
                        "state": "",
                        "taxRegion": null,
                        "workEmail": "contact@example.com",
                        "workPhone": "",
                        "zipCode": ""
                      },
                      "soldToContact": {
                        "address1": "",
                        "address2": "",
                        "city": "",
                        "country": null,
                        "county": null,
                        "fax": "",
                        "firstName": "Test",
                        "homePhone": "",
                        "id": "2c9081a03c6d7b51013c6d7e46c80a17",
                        "lastName": "Test",
                        "mobilePhone": "",
                        "nickname": "",
                        "otherPhone": "",
                        "otherPhoneType": null,
                        "personalEmail": "",
                        "state": "",
                        "taxRegion": null,
                        "workEmail": "contact@example.com",
                        "workPhone": "",
                        "zipCode": ""
                      },
                      "status": "Active",
                      "subscriptionNumber": "A-S00007412",
                      "subscriptionStartDate": "2017-01-01",
                      "success": true,
                      "termEndDate": "2018-01-01",
                      "termStartDate": "2017-01-01",
                      "termType": "TERMED",
                      "totalContractedValue": 100,
                      "version": 1
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETSubscriptionByKeyWithSuccess"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a subscription by key",
        "tags": [
          "Subscriptions"
        ]
      },
      "put": {
        "description": "Use this call to make the following kinds of changes to a subscription:\n  - Add a note\n  - Change the renewal term or auto-renewal flag\n  - Change the term length or change between evergreen and termed\n  - Add a new product rate plan\n  - Remove an existing subscription rate plan\n  - Change the quantity or price of an existing subscription rate plan\n  - Change rate plans - to replace the existing rate plans in a subscription with other rate plans. Changing rate plans is currently not supported for the <a href=\"https://knowledgecenter.zuora.com/Zuora_Revenue/Zuora_Billing_-_Revenue_Integration\" target=\"_blank\">Billing - Revenue Integration</a> feature. When Billing - Revenue Integration is enabled, changing rate plans will no longer be applicable in Zuora Billing.\n\n### Notes:\n\n- The \"Update a subscription\" call creates a new subscription object that has a new version number and to which the subscription changes are applied. The new subscription object has the same subscription name but a new, different, subscription ID. The `Status` field of the new subscription object will be set to `Active` unless the change applied was a cancelation or suspension in which case the status reflects that. The `Status` field of the originating subscription object changes from `Active` to `Expired`. A status of `Expired` does not imply that the subscription itself has expired or ended, merely that this subscription object is no longer the most recent. \n- In one request, this call can make:  \n  - Up to 9 combined add, update, and remove changes \n  - No more than 1 change to terms & conditions\n\n- Updates are performed in the following sequence:\n  1. First change the notes on the existing subscription, if requested.\n  2. Then change the terms and conditions, if requested.\n  3. Then perform the remaining amendments based upon the effective dates specified. If multiple amendments have the same contract-effective dates, then execute adds before updates, and updates before removes.\n  \n- The update operation is atomic. If any of the updates fails, the entire operation is rolled back.\n- The response of the Update Subscription call is based on the REST API minor version you set in the request header. The response structure might be different if you use different minor version numbers.\n- If you have the Invoice Settlement feature enabled, it is best practice to set the `Zuora-Version` parameter to `211.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). Otherwise, an error occurs.\n\n### Override a Tiered Price\n\nThere are two ways you override a tiered price:\n- Override a specific tier number. For example: `tiers[{tier:1,price:8},{tier:2,price:6}]`\n- Override the entire tier structure. For example:  `tiers[{tier:1,price:8,startingUnit:1,endingUnit:100,priceFormat:\"FlatFee\"}, {tier:2,price:6,startingUnit:101,priceFormat:\"FlatFee\"}]`\n\nIf you just override a specific tier, do not include the `startingUnit` field in the request.\n",
        "operationId": "PUT_Subscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "\nSubscription number or ID. \nID can be the latest version or any history version of ID. \n* To make sure you update the last version of the subscription, use one of the following operations to retrieve the last version of ID:\n  * [List subscriptions by account key](https://developer.zuora.com/api-references/api/operation/GET_SubscriptionsByAccount)\n  * [Retrieve a subscription by key](https://developer.zuora.com/api-references/api/operation/GET_SubscriptionsByKey) by using the subscription number as the subscription-key\n* If you want to use any history version of ID, the `STABLE_ID_PUBLIC_API` permission must be enabled. Submit a request at [Zuora Global Support](http://support.zuora.com/) to enable the permission. To retrieve a history version of ID, use the [Retrieve a subscription by key and version](https://developer.zuora.com/api-references/api/operation/GET_SubscriptionsByKeyAndVersion) operation.\n",
            "in": "path",
            "name": "subscription-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTSubscriptionType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "subscriptionId": "4028bb83510f8ed7015114a503cf0373",
                      "success": true,
                      "totalDeltaMrr": 100,
                      "totalDeltaTcv": 4867.7419355
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTSubscriptionResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a subscription",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/subscriptions/{subscription-key}/versions/{version}": {
      "get": {
        "description": "This REST API reference describes how to retrieve detailed information about a specified subscription in a specified version. When you create a subscription amendment, you create a new version of the subscription. You can use this method to retrieve information about a subscription in any version.\n",
        "operationId": "GET_SubscriptionsByKeyAndVersion",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Subscription number. For example, A-S00000135.\n",
            "in": "path",
            "name": "subscription-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Subscription version. For example, 1.\n",
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "\nThe segmented rate plan charges. When an amendment results in a change to a charge, Zuora creates a segmented rate plan charge. Use this field to track segment charges.\n\nPossible values are:\n\n * __last-segment__: (Default) The last rate plan charge on the subscription, that is, the last segmented rate plan charge with the maximum start and end dates.\n * __current-segment__: The segmented charge that is active on today’s date (effectiveStartDate <= today’s date <= effectiveEndDate).\n \n * __all-segments__: All the segmented charges. The `chargeSegments` field is returned in the response. The `chargeSegments` field contains an array of the charge information for all the charge segments.\n\n * __specific-segment&as-of-date=date__: The segmented charge that is active on a date you specified (effectiveStartDate <= specific date < effectiveEndDate). The format of the date is yyyy-mm-dd.\n",
            "in": "query",
            "name": "charge-detail",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The date for `charge-detail`. It is only available when `charge-detail` is `specific-segment`.\n\nThe date should be in the format `YYYY-MM-DD`.\n",
            "in": "query",
            "name": "as-of-date",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "When a rate plan charge has multiple segments, the last segment is returned by default. \n\nIf this charge has been removed before the start date of the last segment (the latest one), with this parameter set to `true`, this charge is excluded from the response; \nIf all the charges under a rate plan are excluded, the rate plan is not returned in the response.\n\n\nThe default value is `false`.\n",
            "in": "query",
            "name": "exclude-rate-plans-with-no-charges",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": " If the `getDetailedMetrics` field is `true`, `contractedNetMrr`, `asOfDayGrossMrr`, `asOfDayNetMrr`, and `netTotalContractedValue` will be in the response.\nThe default value is `false`. ",
            "in": "query",
            "name": "getDetailedMetrics",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "description": "\nThe date for detailed metrics. Only available when `getDetailedMetrics` is `true`. The date should be in the format `YYYY-MM-DD`.\nThe default value is the current date. ",
            "in": "query",
            "name": "asOfDay",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "2c9081a03c63c94c013c66688a2c00bf",
                      "accountName": "RestAPI",
                      "accountNumber": "RestAPI",
                      "autoRenew": false,
                      "contractEffectiveDate": "2012-02-01",
                      "contractedMrr": 26.67,
                      "contractedNetMrr": 26.67,
                      "asOfDayGrossMrr": 26.67,
                      "asOfDayNetMrr": 26.67,
                      "netTotalContractedValue": 26.67,
                      "currency": "USD",
                      "currentTerm": 12,
                      "currentTermPeriodType": "Week",
                      "customerAcceptanceDate": "2012-02-01",
                      "id": "2c9081a03c63c94c013c687b864e0195",
                      "initialTermPeriodType": "Week",
                      "invoiceGroupNumber": "N-0001",
                      "invoiceScheduleId": "ec6f0d5dc8af451ab95343fb3c588c1a",
                      "notes": "",
                      "ratePlans": [
                        {
                          "id": "2c9081a03c63c94c013c687b868901a4",
                          "productId": "2c9081a03c63c94c013c66499ef0001b",
                          "productName": "OneTime",
                          "productRatePlanId": "2c9081a03c63c94c013c665102e5003a",
                          "productSku": "SKU-00000022",
                          "contractedNetMrr": 26.67,
                          "contractedMrr": 26.67,
                          "asOfDayGrossMrr": 26.67,
                          "asOfDayNetMrr": 26.67,
                          "netTotalContractedValue": 26.67,
                          "ratePlanCharges": [
                            {
                              "applyDiscountTo": null,
                              "billingDay": null,
                              "billingPeriod": null,
                              "billingPeriodAlignment": null,
                              "billingTiming": null,
                              "chargedThroughDate": "2012-02-02",
                              "currency": "USD",
                              "description": "",
                              "discountAmount": null,
                              "discountLevel": null,
                              "discountPercentage": null,
                              "dmrc": null,
                              "done": true,
                              "dtcv": 24,
                              "effectiveEndDate": "2012-02-02",
                              "effectiveStartDate": "2012-02-01",
                              "endDateCondition": "One_Time",
                              "id": "2c9081a03c63c94c013c687b868901a5",
                              "includedUnits": null,
                              "invoiceScheduleId": "8a8082c45aa81b51015ad68744240ff5",
                              "listPriceBase": null,
                              "model": "Tiered",
                              "mrr": null,
                              "name": "OT_Tiered",
                              "number": "C-00000010",
                              "numberOfPeriods": null,
                              "originalChargeId": "2c9081a03c63c94c013c687a92d70175",
                              "overageCalculationOption": null,
                              "overagePrice": null,
                              "overageUnusedUnitsCreditOption": null,
                              "price": null,
                              "priceChangeOption": null,
                              "priceIncreasePercentage": null,
                              "pricingSummary": "0 to 10 Each: USD20 flat fee;  11 Each or more: USD4/Each",
                              "processedThroughDate": "2012-02-02",
                              "productRatePlanChargeId": "2c9081a03c63c94c013c6651d677003c",
                              "quantity": 11,
                              "segment": 1,
                              "smoothingModel": null,
                              "specificBillingPeriod": null,
                              "specificEndDate": null,
                              "tcv": 24,
                              "tiers": [
                                {
                                  "endingUnit": 10,
                                  "price": 20,
                                  "priceFormat": "FlatFee",
                                  "startingUnit": 0,
                                  "tier": 1
                                },
                                {
                                  "endingUnit": null,
                                  "price": 4,
                                  "priceFormat": "PerUnit",
                                  "startingUnit": 11,
                                  "tier": 2
                                }
                              ],
                              "triggerDate": null,
                              "triggerEvent": "ContractEffective",
                              "type": "OneTime",
                              "unusedUnitsCreditRates": null,
                              "uom": "Each",
                              "upToPeriods": null,
                              "upToPeriodsType": null,
                              "usageRecordRatingOption": null,
                              "version": 1
                            }
                          ],
                          "ratePlanName": "OT_Tiered"
                        }
                      ],
                      "renewalSetting": "RENEW_WITH_SPECIFIC_TERM",
                      "renewalTerm": 0,
                      "renewalTermPeriodType": "Week",
                      "revision": "1.0",
                      "serviceActivationDate": "2012-02-01",
                      "status": "Active",
                      "subscriptionNumber": "A-S00000004",
                      "subscriptionStartDate": "2012-02-01",
                      "success": true,
                      "termEndDate": "2013-02-01",
                      "termStartDate": "2012-02-01",
                      "termType": "TERMED",
                      "totalContractedValue": 404,
                      "version": 1
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETSubscriptionTypeWithSuccess"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a subscription by key and version",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/subscriptions/{subscription-key}/renew": {
      "put": {
        "description": "Renews a termed subscription using existing renewal terms. When you renew a subscription, the current subscription term is extended by creating a new term.  If any charge in your subscription has the billing period set as `SubscriptionTerm`, a new charge segment is generated for the new term.\n\n**Note**: If you have the Invoice Settlement feature enabled, it is best practice to set the `Zuora-Version` parameter to `211.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). Otherwise, an error occurs.\n",
        "operationId": "PUT_RenewSubscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "Subscription number or ID",
            "in": "path",
            "name": "subscription-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTRenewSubscriptionType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "subscriptionId": "2c92c8f83dcbd8b1013dcce0f09100a5",
                      "success": true,
                      "termEndDate": "2014-05-01",
                      "termStartDate": "2014-02-01"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTRenewSubscriptionResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Renew a subscription",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/subscriptions/{subscription-key}/cancel": {
      "put": {
        "description": "This REST API reference describes how to cancel an active subscription.\n\n**Note**: If you have the Invoice Settlement feature enabled, it is best practice to set the `Zuora-Version` parameter to `211.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). Otherwise, an error occurs.\n",
        "operationId": "PUT_CancelSubscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "Subscription number or ID. Subscription status must be `Active`.",
            "in": "path",
            "name": "subscription-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTSubscriptionCancellationType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "cancelledDate": "2019-05-31",
                      "invoiceId": "8a8082c453cd2a620153e426c7eb78b3",
                      "subscriptionId": "8a8082c453cd2a620154efc7bba0350e",
                      "success": true,
                      "totalDeltaMrr": 0,
                      "totalDeltaTcv": -703.2258065
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTSubscriptionCancellationResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a subscription",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/subscriptions/{subscription-key}/resume": {
      "put": {
        "description": "This REST API reference describes how to resume a suspended subscription.\n\n**Note**: If you have the Invoice Settlement feature enabled, it is best practice to set the `Zuora-Version` parameter to `211.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). Otherwise, an error occurs.\n",
        "operationId": "PUT_ResumeSubscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "Subscription number or ID. Subscription status must be Suspended.",
            "in": "path",
            "name": "subscription-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTSubscriptionResumeType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "subscriptionId": "6429c37b5a392e093172e68779c24021",
                      "resumeDate": "2024-11-01",
                      "termEndDate": "2025-01-13",
                      "totalDeltaTcv": 167.070913965
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTSubscriptionResumeResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Resume a subscription",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/subscriptions/{subscription-key}/suspend": {
      "put": {
        "description": "This REST API reference describes how to suspend an active subscription.\n\n**Note**: If you have the Invoice Settlement feature enabled, it is best practice to set the `Zuora-Version` parameter to `211.0` or later [available versions](https://developer.zuora.com/api-references/api/overview/#section/API-Versions/Minor-Version). Otherwise, an error occurs.\n",
        "operationId": "PUT_SuspendSubscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "Subscription number or ID. Subscription status must be Active.",
            "in": "path",
            "name": "subscription-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTSubscriptionSuspendType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "subscriptionId": "8ad0937890e7fca00190fd3ff7ca7f08",
                      "suspendDate": "2024-07-28",
                      "resumeDate": null,
                      "termEndDate": "2025-07-22",
                      "totalDeltaTcv": -176.978709679
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTSubscriptionSuspendResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Suspend a subscription",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/subscriptions/{subscription-key}/delete": {
      "put": {
        "description": "This REST API reference describes how to delete a subscription of the specified subscription number.\n",
        "operationId": "PUT_DeleteSubscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Subscription number",
            "in": "path",
            "name": "subscription-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTDeleteSubscriptionResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a subscription by number",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/subscriptions/{subscriptionNumber}/versions/{version}/customFields": {
      "put": {
        "description": "Updates the custom fields of a specified subscription version.\n",
        "operationId": "PUT_UpdateSubscriptionCustomFieldsOfASpecifiedVersion",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The subscription number to be updated.",
            "in": "path",
            "name": "subscriptionNumber",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "description": "The subscription version to be updated.",
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTSubscriptionPatchSpecificVersionRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update subscription custom fields of a subscription version",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/subscriptions/subscription-metrics": {
      "get": {
        "description": "Lists subscription metrics for the subscriptions that you specify by subscription numbers.\n",
        "operationId": "GetMetricsBySubscriptionNumbers",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The date for the metrics. The date should be in the format `YYYY-MM-DD`. The default value is the current date.",
            "in": "query",
            "name": "asOfDay",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The subscription numbers of existing subscriptions.",
            "in": "query",
            "name": "subscriptionNumbers[]",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "subscriptionMetrics": [
                    {
                      "subscriptionNumber": "A-S00000008",
                      "contractedMrr": 100,
                      "contractedNetMrr": 100,
                      "asOfDayGrossMrr": 100,
                      "asOfDayNetMrr": 100,
                      "netTotalContractedValue": 100,
                      "totalContractedValue": 100
                    },
                    {
                      "subscriptionNumber": "A-S00000009",
                      "contractedMrr": 100,
                      "contractedNetMrr": 100,
                      "asOfDayGrossMrr": 100,
                      "asOfDayNetMrr": 100,
                      "netTotalContractedValue": 100,
                      "totalContractedValue": 100
                    }
                  ],
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/GETMetricsBySubscriptionNumbersResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List subscription metrics by subscription numbers",
        "tags": [
          "Subscriptions"
        ]
      }
    },
    "/v1/rateplans/{ratePlanId}": {
      "get": {
        "description": "\nRetrieves the detailed information about a specific subscription rate plan.\n\n\n- If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders\" target=\"_blank\">Orders</a>\nfeature enabled, this operation retrieves information about a subscription rate\nplan and the related order that has amended the rate plan.\n\n\n- If you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders_Harmonization\" target=\"_blank\">Orders Harmonization</a>\nfeature enabled, this operation retrieves information about a subscription rate plan and the related order and amendment that have amended the rate plan.\nThe returned objects may be different since amendment, order, and order action are generated asynchronously.\n  - If all are generated, the related amendment and order, including the order action, are returned. \n  - If not, only the related amendment may be returned before generating the order and order action.\n\n\n- If you are an existing Zuora Subscribe and Amend customer, this operation retrieves\ninformation about a subscription rate plan and the related amendment that has\namended the rate plan.\n\n\n**Note:** Orders is now generally available as of Zuora Billing Release 284 (August\n2020). If you are an existing Zuora Subscribe and Amend customer and want to adopt\nOrders, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders_Harmonization/A_Overview_of_Orders_Harmonization\" target=\"_blank\">What is Orders Harmonization</a>\nand join the <a href=\"https://community.zuora.com/t5/Orders-Harmonization/gp-p/Orders-Harmonization\" target=\"_blank\">Orders Harmonization community group</a>\nfor more information. If you want to enable Orders, submit a request at <a href=\"https://support.zuora.com/\" target=\"_blank\">Zuora\nGlobal Support</a>.\n\n\n**Note:** You can only retrieve information about the following order actions:\n\n- `addProduct`\n- `updateProduct`\n- `removeProduct`\n- `changePlan`\n",
        "operationId": "GET_RatePlan",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the subscription rate plan to be retrieved.",
            "in": "path",
            "name": "ratePlanId",
            "required": true,
            "schema": {
              "format": "string",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amendment": {
                        "code": "A-AM00000047",
                        "contractEffectiveDate": "2021-12-29",
                        "createdBy": "2c9890207c9649c0017c969bc6330002",
                        "createdDate": "2021-10-29 19:44:16",
                        "customerAcceptanceDate": "2021-12-29",
                        "description": null,
                        "effectiveDate": "2021-12-29",
                        "id": "402880e47ccbaca1017ccbdd63c818cb",
                        "name": "update",
                        "serviceActivationDate": "2021-12-29",
                        "type": "UpdateProduct",
                        "updatedBy": "2c9890207c9649c0017c969bc6330002",
                        "updatedDate": "2021-10-29 19:44:16"
                      },
                      "id": "402880e47ccbaca1017ccbdd63aa18c8",
                      "lastChangeType": "Update",
                      "order": {
                        "id": "402880e47ccbaca1017ccbdd7b0e18fd",
                        "orderActions": [
                          {
                            "contractEffectiveDate": "2021-12-29",
                            "customerAcceptanceDate": "2021-12-29",
                            "id": "402880e47ccbaca1017ccbdd7b1418ff",
                            "serviceActivationDate": "2021-12-29",
                            "type": "UpdateProduct",
                            "updateProduct": {
                              "chargeUpdates": [],
                              "customFields": {},
                              "newRatePlanId": "402880e47ccbaca1017ccbdd63aa18c8",
                              "productRatePlanId": "2c9890207c9649c0017c96a0f11001a4",
                              "ratePlanId": "402880e47ccbaca1017ccbdd620818ba",
                              "specificUpdateDate": null,
                              "uniqueToken": null
                            }
                          }
                        ],
                        "orderNumber": "O-00000037"
                      },
                      "productId": "2c9890207c9649c0017c96a0588201a2",
                      "productName": "MMORPG game",
                      "productRatePlanId": "2c9890207c9649c0017c96a0f11001a4",
                      "productSku": "SKU-00000001",
                      "ratePlanName": "Rate Plan 1",
                      "subscriptionId": "402880e47ccbaca1017ccbdd644d18d0",
                      "subscriptionVersion": 5,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetOrderActionRatePlanResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a rate plan",
        "tags": [
          "Rate Plans"
        ]
      }
    },
    "/v1/omni-channel-subscriptions": {
      "post": {
        "description": "Creates or updates an omnichannel subscription for a customer account.\n\nYou can also create a new customer account and assign it to the new omnichannel subscription.\n",
        "operationId": "postOmnichannelSubscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOmniChannelSubscriptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "success": true,
                  "subscriptionId": "54be52bbb1b9288bbf82942e00de0000",
                  "subscriptionNumber": "A-S00000001",
                  "accountId": "2c98906e9288bc0b0192942dfbdc316d",
                  "accountNumber": "AN_1729062894303"
                },
                "schema": {
                  "$ref": "#/components/schemas/CreateOmniChannelSubscriptionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "processId",
                  "reasons": [
                    {
                      "code": "51001122",
                      "message": "'billToContact' may not be null"
                    },
                    {
                      "code": "51000030",
                      "message": "If 'billingCycleDay' is absent, 'subscription.contractEffectiveDate' is necessary"
                    }
                  ],
                  "success": false
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Create an omnichannel subscription",
        "tags": [
          "Omnichannel Subscriptions"
        ]
      }
    },
    "/v1/omni-channel-subscriptions/{subscriptionKey}": {
      "get": {
        "description": "Retrieves the information about a specific omnichannel subscription. ",
        "operationId": "getOmnichannelSubscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_get_account_details"
          },
          {
            "description": "The ID or number of the omnichannel subscription to be retrieved. The ID may be a Zuora subscription ID or an external system subscription ID.",
            "in": "path",
            "name": "subscriptionKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "success": true,
                  "id": "303d186840e611df817c002185d714e1",
                  "subscriptionNumber": "A-S00000001",
                  "externalSubscriptionId": "56cc93ed3767476782cf2f150e38249c",
                  "accountId": "2c98906e9288bc0b0192942dfbdc316d",
                  "externalTransactionReason": "Purchase",
                  "externalSourceSystem": "Apple",
                  "externalState": "Grace",
                  "state": "Active",
                  "externalProductId": "874d2a0ef3ad43d5b3402771f56aca1d",
                  "externalReplaceByProductId": null,
                  "externalInAppOwnershipType": "Purchase",
                  "externalQuantity": 1,
                  "currency": "USD",
                  "autoRenew": false,
                  "originalPurchaseDate": "2024-02-01 00:01:15",
                  "externalPurchaseDate": "2024-03-05 10:42:11",
                  "externalActivationDate": "2024-03-01 12:12:12",
                  "externalExpirationDate": "2024-06-01 12:12:12",
                  "externalApplicationId": "external-application-id",
                  "externalBundleId": "external-bundle-id",
                  "externalSubscriberId": "external-subscriber-id",
                  "externalPrice": 100,
                  "externalPurchaseType": "Purchase",
                  "externalLastRenewalDate": "2024-03-01 12:12:12",
                  "externalNextRenewalDate": "2024-09-01 12:12:12"
                },
                "schema": {
                  "$ref": "#/components/schemas/GetOmniChannelSubscriptionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header. ",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header. ",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "processId",
                  "reasons": [
                    {
                      "code": "51001122",
                      "message": "'billToContact' may not be null"
                    },
                    {
                      "code": "51000030",
                      "message": "If 'billingCycleDay' is absent, 'subscription.contractEffectiveDate' is necessary"
                    }
                  ],
                  "success": false
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header. ",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header. ",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Retrieve an omnichannel subscription",
        "tags": [
          "Omnichannel Subscriptions"
        ]
      },
      "delete": {
        "description": "Deletes a specified omnichannel subscription. ",
        "operationId": "deleteOmnichannelSubscription",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The key of the omnichannel subscription to be deleted.",
            "in": "path",
            "name": "subscriptionKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "processId",
                  "reasons": [
                    {
                      "code": "51001122",
                      "message": "'billToContact' may not be null"
                    },
                    {
                      "code": "51000030",
                      "message": "If 'billingCycleDay' is absent, 'subscription.contractEffectiveDate' is necessary"
                    }
                  ],
                  "success": false
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an omnichannel subscription",
        "tags": [
          "Omnichannel Subscriptions"
        ]
      }
    },
    "/v1/subscription-change-logs/{subscriptionNumber}": {
      "get": {
        "description": "Lists subscription change histories of a single version subscription. Each history maps to an order.\nSee the `subscriptions` > `fields`, `ratePlans` > `fields`, and `ratePlanCharges` > `fields` fields for the changes in the subscription, subscription rate plans, and subscription rate plan charges.\n\n**Note**: This operation is only available if you have the following features turned on:\n\n  - <a href=\"https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders\" target=\"_blank\">Orders</a>\n  \n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/Single_Version_Subscription\" target=\"_blank\">Single Version Subscription</a>\n",
        "operationId": "getSubscriptionChangeLogsBySubscriptionNumber",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The subscription number to be retrieved.",
            "in": "path",
            "name": "subscriptionNumber",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "success": true,
                  "subscriptions": [
                    {
                      "subscriptionNumber": "A-S00000001",
                      "version": 2,
                      "subscriptionStartDate": "2021-01-01",
                      "subscriptionEndDate": "2023-02-01",
                      "termStartDate": "2021-02-01",
                      "termEndDate": "2023-02-01",
                      "accountNumber": "AN_1723454733315",
                      "invoiceOwnerAccountNumber": "AN_1723454733315",
                      "currency": "USD",
                      "orderNumber": "O-00000002",
                      "type": "Standard",
                      "externalSubscriptionId": null,
                      "changedTime": "2024-08-12 02:25:36",
                      "ratePlans": [
                        {
                          "ratePlanNumber": "SRP-00000001",
                          "ratePlanCharges": [
                            {
                              "chargeNumber": "C-00000001",
                              "ratePlanChargeId": "28b907304229145dff3145e84432000a",
                              "effectiveStartDate": "2021-01-01",
                              "effectiveEndDate": "2023-02-01",
                              "fields": [
                                {
                                  "fieldName": "effectiveEndDate",
                                  "oldValue": "2022-01-01",
                                  "newValue": "2023-02-01"
                                }
                              ]
                            }
                          ],
                          "fields": []
                        }
                      ],
                      "fields": [
                        {
                          "fieldName": "initialTerm",
                          "oldValue": "12",
                          "newValue": "2"
                        },
                        {
                          "fieldName": "initialTermPeriodType",
                          "oldValue": "Month",
                          "newValue": "Year"
                        }
                      ]
                    },
                    {
                      "subscriptionNumber": "A-S00000001",
                      "version": 1,
                      "subscriptionStartDate": "2021-01-01",
                      "subscriptionEndDate": "2022-01-01",
                      "termStartDate": "2021-01-01",
                      "termEndDate": "2022-01-01",
                      "accountNumber": "AN_1723454733315",
                      "invoiceOwnerAccountNumber": "AN_1723454733315",
                      "currency": "USD",
                      "orderNumber": "O-00000001",
                      "type": "Standard",
                      "externalSubscriptionId": null,
                      "changedTime": "2024-08-12 02:25:35",
                      "ratePlans": [
                        {
                          "ratePlanNumber": "SRP-00000001",
                          "ratePlanCharges": [
                            {
                              "chargeNumber": "C-00000001",
                              "ratePlanChargeId": "28b907304229145dff3145e84432000a",
                              "effectiveStartDate": "2021-01-01",
                              "effectiveEndDate": "2022-01-01",
                              "fields": [
                                {
                                  "fieldName": "price",
                                  "oldValue": null,
                                  "newValue": "100"
                                },
                                {
                                  "fieldName": "quantity",
                                  "oldValue": null,
                                  "newValue": "1"
                                }
                              ]
                            }
                          ],
                          "fields": [
                            {
                              "fieldName": "RP_CF1__c",
                              "oldValue": null,
                              "newValue": "Init value for rp cf 1"
                            }
                          ]
                        }
                      ],
                      "fields": [
                        {
                          "fieldName": "accountId",
                          "oldValue": null,
                          "newValue": "ff8080819145e003019145e83c4657cb"
                        },
                        {
                          "fieldName": "autoRenew",
                          "oldValue": null,
                          "newValue": "false"
                        }
                      ]
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/GetSubscriptionChangeLogsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header. ",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header. ",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "processId",
                  "reasons": [
                    {
                      "code": "51001122",
                      "message": "'billToContact' may not be null"
                    },
                    {
                      "code": "51000030",
                      "message": "If 'billingCycleDay' is absent, 'subscription.contractEffectiveDate' is necessary"
                    }
                  ],
                  "success": false
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List change histories of a subscription",
        "tags": [
          "Subscription Change History"
        ]
      }
    },
    "/v1/subscription-change-logs/orders/{orderNumber}": {
      "get": {
        "description": "List the change histories of single version subscriptions that are included in and processed by an order. Each history maps to a subscription associated with this order.\nSee the `subscriptions` > `fields`, `ratePlans` > `fields`, and `ratePlanCharges` > `fields` fields for the changes in the subscription, subscription rate plans, and subscription rate plan charges.\n\n**Note**: This operation is only available if you have the following features turned on:\n\n  - <a href=\"https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders\" target=\"_blank\">Orders</a>\n  \n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/Single_Version_Subscription\" target=\"_blank\">Single Version Subscription</a>\n",
        "operationId": "getSubscriptionChangeLogsByOrderNumber",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The order number associated with the subscription to be retrieved.",
            "in": "path",
            "name": "orderNumber",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "success": true,
                  "subscriptions": [
                    {
                      "subscriptionNumber": "A-S00000001",
                      "version": 1,
                      "subscriptionStartDate": "2021-01-01",
                      "subscriptionEndDate": "2022-01-01",
                      "termStartDate": "2021-01-01",
                      "termEndDate": "2022-01-01",
                      "accountNumber": "AN_1723456739867",
                      "invoiceOwnerAccountNumber": "AN_1723456739867",
                      "currency": "USD",
                      "orderNumber": "O-00000001",
                      "type": "Standard",
                      "externalSubscriptionId": null,
                      "changedTime": "2024-08-12 02:59:00",
                      "ratePlans": [
                        {
                          "ratePlanNumber": "SRP-00000001",
                          "ratePlanCharges": [
                            {
                              "chargeNumber": "C-00000001",
                              "ratePlanChargeId": "240207304399145dff314606db890009",
                              "effectiveStartDate": "2021-01-01",
                              "effectiveEndDate": "2022-01-01",
                              "fields": [
                                {
                                  "fieldName": "price",
                                  "oldValue": null,
                                  "newValue": "100"
                                },
                                {
                                  "fieldName": "quantity",
                                  "oldValue": null,
                                  "newValue": "1"
                                }
                              ]
                            }
                          ],
                          "fields": []
                        }
                      ],
                      "fields": [
                        {
                          "fieldName": "accountId",
                          "oldValue": null,
                          "newValue": "ff8080819145e00301914606da4c613f"
                        },
                        {
                          "fieldName": "autoRenew",
                          "oldValue": null,
                          "newValue": "false"
                        }
                      ]
                    },
                    {
                      "subscriptionNumber": "A-S00000002",
                      "version": 1,
                      "subscriptionStartDate": "2021-01-01",
                      "subscriptionEndDate": "2023-01-01",
                      "termStartDate": "2021-01-01",
                      "termEndDate": "2023-01-01",
                      "accountNumber": "AN_1723456739867",
                      "invoiceOwnerAccountNumber": "AN_1723456739867",
                      "currency": "USD",
                      "orderNumber": "O-00000001",
                      "type": "Standard",
                      "externalSubscriptionId": null,
                      "changedTime": "2024-08-12 02:59:00",
                      "ratePlans": [
                        {
                          "ratePlanNumber": "SRP-00000002",
                          "ratePlanCharges": [
                            {
                              "chargeNumber": "C-00000002",
                              "ratePlanChargeId": "240207304399145dff314606dbe50014",
                              "effectiveStartDate": "2021-01-01",
                              "effectiveEndDate": "2023-01-01",
                              "fields": [
                                {
                                  "fieldName": "price",
                                  "oldValue": null,
                                  "newValue": "400"
                                },
                                {
                                  "fieldName": "quantity",
                                  "oldValue": null,
                                  "newValue": "1"
                                }
                              ]
                            }
                          ],
                          "fields": []
                        }
                      ],
                      "fields": [
                        {
                          "fieldName": "accountId",
                          "oldValue": null,
                          "newValue": "ff8080819145e00301914606da4c613f"
                        },
                        {
                          "fieldName": "autoRenew",
                          "oldValue": null,
                          "newValue": "false"
                        }
                      ]
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/GetSubscriptionChangeLogsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header. ",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header. ",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "processId",
                  "reasons": [
                    {
                      "code": "51001122",
                      "message": "'billToContact' may not be null"
                    },
                    {
                      "code": "51000030",
                      "message": "If 'billingCycleDay' is absent, 'subscription.contractEffectiveDate' is necessary"
                    }
                  ],
                  "success": false
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List change histories of subscriptions by order number",
        "tags": [
          "Subscription Change History"
        ]
      }
    },
    "/v1/subscription-change-logs/{subscriptionNumber}/versions/{version}": {
      "get": {
        "description": "Retrieves the change history of a single version subscription by version. This version indicates the creation sequence of the orders associated with the subscription and starts from `1`. \nSee the `subscription` > `fields`, `ratePlans` > `fields`, and `ratePlanCharges` > `fields` fields for the changes in the subscription, subscription rate plans, and subscription rate plan charges.\n\n**Note**: This operation is only available if you have the following features turned on:\n\n  - <a href=\"https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/AA_Overview_of_Orders#Orders\" target=\"_blank\">Orders</a>\n  \n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Manage_subscription_transactions/Orders/Single_Version_Subscription\" target=\"_blank\">Single Version Subscription</a>\n",
        "operationId": "getSubscriptionChangelogByVersion",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The subscription number to be retrieved.",
            "in": "path",
            "name": "subscriptionNumber",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This version indicates the creation sequence of the orders associated with the subscription and starts from `1`.\n",
            "in": "path",
            "name": "version",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "success": true,
                  "subscription": {
                    "subscriptionNumber": "A-S00000001",
                    "version": 2,
                    "subscriptionStartDate": "2021-01-01",
                    "subscriptionEndDate": "2023-02-01",
                    "termStartDate": "2021-02-01",
                    "termEndDate": "2023-02-01",
                    "accountNumber": "AN_1723454733315",
                    "invoiceOwnerAccountNumber": "AN_1723454733315",
                    "currency": "USD",
                    "orderNumber": "O-00000002",
                    "type": "Standard",
                    "externalSubscriptionId": null,
                    "changedTime": "2024-08-12 02:25:36",
                    "ratePlans": [
                      {
                        "ratePlanNumber": "SRP-00000001",
                        "ratePlanCharges": [
                          {
                            "chargeNumber": "C-00000001",
                            "ratePlanChargeId": "28b907304229145dff3145e84432000a",
                            "effectiveStartDate": "2021-01-01",
                            "effectiveEndDate": "2023-02-01",
                            "fields": [
                              {
                                "fieldName": "effectiveEndDate",
                                "oldValue": "2022-01-01",
                                "newValue": "2023-02-01"
                              }
                            ]
                          }
                        ],
                        "fields": []
                      }
                    ],
                    "fields": [
                      {
                        "fieldName": "initialTerm",
                        "oldValue": "12",
                        "newValue": "2"
                      },
                      {
                        "fieldName": "initialTermPeriodType",
                        "oldValue": "Month",
                        "newValue": "Year"
                      }
                    ]
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetSubscriptionChangeLogResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header. ",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header. ",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "processId",
                  "reasons": [
                    {
                      "code": "51001122",
                      "message": "'billToContact' may not be null"
                    },
                    {
                      "code": "51000030",
                      "message": "If 'billingCycleDay' is absent, 'subscription.contractEffectiveDate' is necessary"
                    }
                  ],
                  "success": false
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a change history of a subscription by version",
        "tags": [
          "Subscription Change History"
        ]
      }
    },
    "/v1/ppdd/reverse-rollover": {
      "post": {
        "description": "This REST API reference describes how to manually reverse fund rollover from source validity period to destination validity period. There are no path or query parameters.\n\n**Note**: This API will not work if the associated prepayment charge has rollover enabled.\n",
        "operationId": "POST_ReverseRollover",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTReverseRolloverRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Reverse rollover is done",
                      "reverseRolloverFundCount": 1,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTReverseRolloverResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data. \n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Reverse fund rollover",
        "tags": [
          "Prepaid with Drawdown"
        ]
      }
    },
    "/v1/ppdd/rollover": {
      "post": {
        "description": "Prepaid with Drawdown Rollover enables you to transfer the accumulative carryover of your customers’ prepaid balance funds to the following validity period when using Prepaid with Drawdown. This REST API reference describes how to manually trigger fund rollover from source validity period to destination validity period. There are no path or query parameters.\n\n**Note**: This API will not work if rollover is enabled in the associated prepayment charge. If you want to trigger rollover automatically, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_usage_or_prepaid_products/Advanced_Consumption_Billing/Prepaid_with_Drawdown/Create_prepayment_charge_with_rollover\" target=\"_blank\">Create prepayment charge with rollover</a> for more information.\n",
        "operationId": "POST_Rollover",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTTriggerRolloverRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Rollover is done",
                      "rolloverFundCount": 1,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTTriggerRolloverResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Trigger fund rollover",
        "tags": [
          "Prepaid with Drawdown"
        ]
      }
    },
    "/v1/prepaid-balance-funds/deplete": {
      "post": {
        "description": "Depleting a prepaid balance fund enables you to expire the remaining balance, which can be recognized by revenue. When an expiry request is received, the remaining fund balance is reduced to zero, and the related objects like PrepaidBalance, ValidityPeriodSummary, PrepaidBalanceTransaction, and DailyConsumption will be updated. ",
        "operationId": "DepleteFunds",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTDepleteFundRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "fundIds": [
                        {
                          "fundId": "4028818c8d3ade79018d3ae1048a5e10",
                          "status": "success",
                          "message": "The fund object is depleted."
                        },
                        {
                          "fundId": "4028818c8d3ade79018d3ae1048a5ef8",
                          "status": "success",
                          "message": "The fund object is depleted."
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTDepleteFundResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Deplete funds",
        "tags": [
          "Prepaid with Drawdown"
        ]
      }
    },
    "/v1/usage": {
      "post": {
        "description": "This REST API reference describes how to post or import usage data for one or more accounts in the CSV format. There are no path or query parameters. The data is uploaded using the HTTP multipart/form-data POST method and applied to the user's tenant. \n\n### How this REST API Call Works\nThe content of the uploaded usage file must follow the format used by the UI import tool. It must be a comma-separated (CSV) file with a corresponding .csv extension. The length of the file name must not exceed 50 characters. The file size must not exceed 4MB. See [Downloading the Usage Template](https://knowledgecenter.zuora.com/CB_Billing/J_Billing_Operations/Usage/C_Import_Usage_Data#Downloading_the_Usage_Template) to learn about how to download the usage file template.\n\nAt the completion of the upload, before the file contents are actually being processed, the API returns a response containing the byte count of the received file and a URL for checking the status of the import process.  Of the five possible results displayed at that URL (Pending, Processing, Completed, Canceled, and Failed) only a Completed status indicates that the import was successful.  The operation is atomic; if any record fails, the file is rejected. In that case, the entire import is rolled back and all stored data is returned to its original state.\n\nTo view the actual import status, enter the resulting status URL from the checkImportStatus response using a tool such as POSTMAN. This additional step provides more information about why the import has failed.\n\nTo manage the information after a successful upload, use the web-based UI.\n\n#### Dynamic pricing usage charges\nWhen the uploaded   file contains rows that reference a product rate plan charge configured for dynamic pricing,   the upload is rejected and those rows are not imported. Legacy Billing usage import does not   support sending usage to dynamic pricing usage charges.\nTo send usage to a dynamic pricing   usage charge, use Mediation to ingest and rate the events. Mediation generates usage records   that are later consumed by Billing, instead of relying on this bulk upload endpoint.\n\n### Usage File Format\nThe usage file uses the following headings: \n\n| Heading         | Description   | Required |\n|-----------------|--------|----------|\n| ACCOUNT_ID      | Enter the account number, e.g., the default account number, such as A00000001, or your custom account number. Although this field is labeled as Account_Id, it is not the actual Account ID nor Account Name.  | Yes      |\n| UOM             | Enter the unit of measure. This must match the UOM for the usage. | Yes      |\n| QTY             | Enter the quantity.  | Yes      |\n| STARTDATE       | Enter the start date of the usage. This date determines the invoice item service period the associated usage is billed to. Date format is based on locale of the current user. Default date format: `MM/DD/YYYY`. | Yes |\n| ENDDATE         | Enter the end date of the usage. This is not used in calculations for usage billing and is optional. Date format is based on locale of the current user. Default date format: `MM/DD/YYYY`. <p>**Note:** The value of this column is optional, but the column header is required.</p> | No |\n| PRODUCT_RATE_PLAN_CHARGE_ID | Enter a product rate plan charge number so that you can charge your customer with a dynamic usage charge for the corresponding uploaded usage record. <p>**Note:** The value of this column is optional, but the column header is required. To use this field, you must set the `X-Zuora-WSDL-Version` request header to `146` or higher. Otherwise, an error occurs.</p>  | No   |\n| SUBSCRIPTION_ID | Enter the subscription number or subscription name. If you created the subscription in the Zuora application, Zuora created a number automatically in a format similar to A-S00000001. If you do not provide a value for this field, the associated usage will be added to all subscriptions for the specified Account that use this Unit Of Measure. If your Accounts can have multiple subscriptions and you do not want double or triple counting of usage, you must specify the Subscription or Charge ID in each usage record.  <p>**Note:** The value of this column is optional, but the column header is required.</p>  | No   |\n| CHARGE_ID       | Enter the charge number (not the charge name). You can see the charge ID, e.g., C-00000001, when you add your rate plan to your subscription and view your individual charges. If your Accounts can have multiple subscriptions and you do not want double or triple counting of usage, you must specify the specific Subscription or Charge ID in each usage record. This field is related to the Charge Number on the subscription rate plan.  <p>**Note:** The value of this column is optional, but the column header is required.</p>  | No      |\n| DESCRIPTION     | Enter a description for the charge. | No       |\n| UNIQUE_KEY      | Enter a specific identifier for this usage record. **Note**: This Heading is supported by the following features: <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_with_Drawdown\">Prepaid with Drawdown</a>, and <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Unbilled_Usage\">Unbilled Usage</a>. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Billing_and_Invoicing/JA_Advanced_Consumption_Billing/Prepaid_with_Drawdown/L_Prepaid_balance_transactions#Upload_usage_record_with_unique_key\">Upload usage record with unique key</a> for more information.  | No      |\n",
        "operationId": "POST_Usage",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "The usage data to import. The supported formats are excel, csv, and zip.\n",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "required": [
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "checkImportStatus": "/v1/usage/2c92c8f83dcbd8b1013dcce1159900cc/status",
                      "size": 316,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTUsageResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Upload a usage file",
        "tags": [
          "Usage"
        ],
        "x-code-samples": [
          {
            "label": "Curl",
            "lang": "curl",
            "source": "curl -X POST -H \"Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1\" -F \"file=@UsageData.csv\" \"https://rest.zuora.com/v1/usage\"\n"
          }
        ]
      }
    },
    "/v1/invoices/invoice-item/{invoice-item-id}/usage-rate-detail": {
      "get": {
        "description": "Use this REST API operation to retrieve the usage rate detail for an invoice item to understand how the total amount is calculated. The information is the same as the Rate Detail presented on [PDF invoices](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/IA_Invoices/Create_a_custom_invoice_template/DD_Display_Usage_Charge_Breakdown#How_UsageSummary.RateDetail_is_displayed_on_invoices).  \n\n**Notes and limitations:**\n- Do not support the Overage Charge Model, Tiered with Overage Charge Model, and Multi-attribute Pricing Charge Model.\n- Do not support invoices in `Cancelled` or `Reversed` status.\n- Do not support Active rating.\n- In terms of rating group options, only the [Usage rating by billing period](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Rating/Usage_Rating_by_Group#Usage_rating_by_billing_period) is supported.\n- Do not support [On-demand usage rating](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/J_Billing_Operations/Rating/On-demand_Usage_Rating). \n- Tax calculation is not involved.\n",
        "operationId": "GET_Usage_Rate_Detail_By_Invoice_Item",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Invoice item ID. For example, `402880e57f725d85017f7267c4ad002b`. Available through Data Source export.",
            "in": "path",
            "name": "invoice-item-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "data": {
                        "amountWithoutTax": 58,
                        "chargeNumber": "C-00000001",
                        "invoiceId": "402880e57f725d85017f7267c44c0028",
                        "invoiceItemId": "402880e57f725d85017f7267c4ad002b",
                        "invoiceNumber": "INV00000007",
                        "listPrice": "Tier / From / To / List Price / Price Format\n1 / 0 / 9 / 0.00 / Per Unit\n2 / 10 / 20 / 1.00 / Per Unit\n3 / 21 / 30 / 2.00 / Flat Fee\n4 / 31 /   / 3.00 / Per Unit\n",
                        "quantity": 45,
                        "rateDetail": "Tier 1: 0-9, 9 Each(s) x $0.00/Each = $0.00\nTier 2: 10-20, 11 Each(s) x $1.00/Each = $11.00\nTier 3: 21-30, $2.00 Flat Fee\nTier 4: >=31, 15 Each(s) x $3.00/Each = $45.00\nTotal = $58.00",
                        "servicePeriod": "03/01/2022-03/31/2022",
                        "uom": "Each"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETUsageRateDetailWrapper"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve usage rate detail for an invoice item",
        "tags": [
          "Usage"
        ]
      }
    },
    "/v1/object/usage": {
      "post": {
        "description": "Creates a usage record.",
        "operationId": "Object_POSTUsage",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_rejectUnknownFields"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_X_Zuora_WSDL_Version"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyCreateUsage"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Id": "8ad08ae29085a77b0190908bfdd67abb",
                      "Success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyCreateOrModifyResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Errors": [
                        {
                          "Code": "INVALID_VALUE",
                          "Message": "The account number 123xProxy is invalid."
                        }
                      ],
                      "Success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Create a usage record",
        "tags": [
          "Usage"
        ]
      }
    },
    "/v1/object/usage/{id}": {
      "delete": {
        "description": "Deletes a usage record. Usage records that are associated with a dynamic pricing usage charge cannot be deleted with this legacy Billing endpoint. When a delete request targets such a record, the operation fails and the usage record is not removed. Operations on dynamic pricing usage are supported only via Mediation-driven flows.",
        "operationId": "Object_DELETEUsage",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyDeleteResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Delete a usage record",
        "tags": [
          "Usage"
        ]
      },
      "get": {
        "description": "Retrieve a usage record.",
        "operationId": "Object_GETUsage",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "Object fields to return",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "AccountId": "2c92c0f956bc8fb40156d502fc3718b1",
                      "AccountNumber": "A00000030",
                      "ChargeId": "2c92c0f956bc8fcb0156d5039e275aa9",
                      "ChargeNumber": "C-00000229",
                      "CreatedById": "2c92c0f958fffd7d015914aeefc71a5d",
                      "CreatedDate": "2019-07-18T15:36:43.000+08:00",
                      "Description": "test",
                      "Id": "2c92c0f86bf50ca0016c040309316ca4",
                      "Quantity": 9,
                      "RbeStatus": "Pending",
                      "SourceType": "API",
                      "StartDateTime": "2017-12-01T23:41:36.000+08:00",
                      "SubmissionDateTime": "2019-07-18T15:36:43.000+08:00",
                      "SubscriptionId": "2c92c0f956bc8fcb0156d5039e0a5aa0",
                      "SubscriptionNumber": "A-S00000100",
                      "UOM": "Each",
                      "UpdatedById": "2c92c0f958fffd7d015914aeefc71a5d",
                      "UpdatedDate": "2019-07-18T15:36:43.000+08:00"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyGetUsage"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "done": true,
                      "records": {},
                      "size": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyNoDataResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Retrieve a usage record",
        "tags": [
          "Usage"
        ]
      },
      "put": {
        "description": "Updates a usage record. Updating usage records that are associated with a dynamic pricing usage charge is not supported through this endpoint. The request fails and the record is not updated. Use Mediation-based flows to manage such usage.",
        "operationId": "Object_PUTUsage",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_rejectUnknownFields"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyModifyUsage"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Id": "8ad08ae29085a77b0190908bfdd67abb",
                      "Success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyCreateOrModifyResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Update a usage record",
        "tags": [
          "Usage"
        ]
      }
    },
    "/meters/run/{meterId}/{version}": {
      "post": {
        "tags": [
          "Meters"
        ],
        "summary": "Run a specific version of a meter",
        "description": "Executes a specific version of a meter in Zuora Mediation. You can choose to run it with either a local file or event store source by providing optional configurations.\n",
        "operationId": "runSpecificVersionOfMeter",
        "parameters": [
          {
            "name": "meterId",
            "in": "path",
            "required": true,
            "description": "The ID of the meter to run.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "description": "The version of the meter to run.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunMeterVersionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful meter run",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunMeterVersionResponse"
                },
                "examples": {
                  "success": {
                    "summary": "Meter run success example",
                    "value": {
                      "success": true,
                      "data": {
                        "id": "5468",
                        "sessionId": "R-00005468",
                        "jobId": "da0b43468d6a41eaad03e559d6aecceb",
                        "meterId": 2470,
                        "version": "0.0.1",
                        "revision": 1,
                        "runType": 1,
                        "runTypeDescription": "NORMAL",
                        "startTime": "2025-03-31T09:17:21.192927441Z",
                        "status": 10,
                        "statusDescription": "INITIALIZING",
                        "canExportSummary": false,
                        "hasLineageEnabled": false
                      },
                      "previousPage": "null",
                      "nextPage": "null"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/debug/{meterId}/{version}": {
      "post": {
        "tags": [
          "Meters"
        ],
        "summary": "Test a specific version of a meter",
        "description": "Test a specific version of a meter in Zuora Mediation without executing a full run. It supports multiple input methods, including uploaded files, sample files, and manual test data. This is useful for validating meter logic and transformations before meter run.",
        "operationId": "testSpecificVersionOfMeter",
        "parameters": [
          {
            "name": "meterId",
            "in": "path",
            "description": "The ID of the meter to be tested.",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "version",
            "in": "path",
            "description": "The version of the meter to be tested.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TestSpecificMeterRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully tested meter version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestSpecificMeterResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid or missing parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Authentication failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediationErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error - Unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/{meterId}/summary": {
      "post": {
        "tags": [
          "Meters"
        ],
        "summary": "Retrieve summary data for a meter",
        "description": "Retrieves summary data for a specific meter in Zuora Mediation, providing a rolled-up view of a meter run or time window. The API supports grouping by Operator ID, Error Code, or Session ID, and allows optional filters such as Query From Time, Query To Time, Operator IDs, and Session IDs. The API returns aggregated output and error counts per group and includes validation with detailed error responses for invalid parameters or formats.",
        "operationId": "retrieveMeterSummaryData",
        "parameters": [
          {
            "name": "meterId",
            "in": "path",
            "description": "The ID of the meter.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSpecificMeterSummaryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateSpecificMeterSummaryResponse"
                },
                "example": {
                  "success": true,
                  "data": {
                    "requestId": "91d46fea-67de-4abe-9cc3-6ef076bbb7ea",
                    "requestTime": "2025-11-20T16:41:27.858661268Z",
                    "query": {
                      "runType": "NORMAL",
                      "sessionIds": null,
                      "operatorIds": null,
                      "groupBy": [
                        "sessionId"
                      ],
                      "queryFromTime": null,
                      "queryToTime": null
                    },
                    "output": [
                      {
                        "dimensions": {
                          "sessionId": "R-00002283"
                        },
                        "output": 10000000,
                        "totalErrorCount": 0
                      },
                      {
                        "dimensions": {
                          "sessionId": "R-00002340"
                        },
                        "output": 10000000,
                        "totalErrorCount": 0
                      }
                    ]
                  },
                  "previousPage": null,
                  "nextPage": null
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid or missing parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Authentication failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediationErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error - Unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/{meterId}/{version}/runStatus": {
      "get": {
        "tags": [
          "Meters"
        ],
        "summary": "Retrieve the run status of a specific meter version",
        "description": "Retrieves the current run status of a specific meter version in Zuora Mediation. It returns an integer code indicating the status, such as `RUNNING`, `COMPLETED`, or `FAILED`, which helps monitor the meter's execution state.",
        "operationId": "getRunStatusOfSpecificMeterVersion",
        "parameters": [
          {
            "name": "meterId",
            "in": "path",
            "required": true,
            "description": "ID of the meter.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "description": "Version of the meter.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with run status data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunStatusResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "404": {
            "description": "Meter not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediationErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/{meterId}/auditTrail/entries": {
      "get": {
        "tags": [
          "Meters"
        ],
        "summary": "Retrieve the audit trail entries for a meter",
        "description": "Retrieves the audit trail entries for a specific meter in Zuora Mediation. The API provides detailed, record-level information about what happened during processing, including Payload and error details, operator information, and the trace ID/event ID.",
        "operationId": "getAuditTrailEntriesForMeter",
        "parameters": [
          {
            "name": "meterId",
            "in": "path",
            "required": true,
            "description": "ID of the meter.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "exportType",
            "in": "query",
            "required": true,
            "description": "Type of the export. `SAMPLE` indicates an export of success records, `ERROR` indicates an export of error records.",
            "schema": {
              "type": "string",
              "enum": [
                "SAMPLE",
                "ERROR"
              ]
            }
          },
          {
            "name": "runType",
            "in": "query",
            "required": true,
            "description": "Specifies the type of run. `DEBUG` indicates a test run, `NORMAL` indicates a live run.",
            "schema": {
              "type": "string",
              "enum": [
                "DEBUG",
                "NORMAL"
              ]
            }
          },
          {
            "name": "sessionId",
            "in": "query",
            "required": false,
            "description": "A specific session ID.\n",
            "example": "R-000001",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "queryFromTime",
            "in": "query",
            "required": true,
            "description": "The minimum timestamp of the audit trail data. The standard used is ISO 8601 with timezones.\n",
            "schema": {
              "type": "string"
            },
            "example": "2025-07-18 T00:00:00Z"
          },
          {
            "name": "queryToTime",
            "in": "query",
            "required": true,
            "description": "The maximum timestamp of the audit trail data. The standard used is ISO 8601 with timezones.\n",
            "schema": {
              "type": "string"
            },
            "example": "2025-07-18 T00:00:00Z"
          },
          {
            "name": "operatorId",
            "in": "query",
            "required": false,
            "description": "The ID of the operator. The Operator ID is displayed for each operator node, for both current meters and historic runs. On the Mediation UI, click on a test ID or session ID to see the details of the run.\n",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Page size for pagination.\n",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30,
              "maximum": 500
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "nextPage token from previous response.\n",
            "schema": {
              "type": "string"
            },
            "example": "W3sib3JkZXJ="
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAuditTrailResponse"
                },
                "example": {
                  "success": true,
                  "data": [
                    {
                      "errorTime": "1753296408775",
                      "errorCode": "",
                      "errorMessage": "",
                      "payload": {
                        "event time": "2025-07-01",
                        "charge number": "C-00000017",
                        "qty": 10,
                        "ratedAmount": "10.0"
                      },
                      "eventId": "601f65ca-67f5-11f0-9e3a-5d9d6cbeef3e|0",
                      "traceId": "601f65ca-67f5-11f0-9e3a-5d9d6cbeef3e|0_a_b_e_d_o7normal",
                      "operatorType": "BILLING-RATING",
                      "operatorName": "Rating",
                      "operatorId": "15004c16-6242-4f50-9faf-cb1a0fe6e0f5"
                    }
                  ],
                  "previousPage": null,
                  "nextPage": "eyJjdXJzb3IiOi4uLn0="
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/{meterId}/auditTrail/export": {
      "get": {
        "tags": [
          "Meters"
        ],
        "summary": "Retrieve the list of export jobs for a meter",
        "description": "Retrieves the list of previously initiated export jobs for a specific meter in Zuora Mediation. The API supports advanced filtering by time range, run status, run type, export type, session IDs, and operator IDs. Use the returned `status` and `fileList` fields to determine whether a job is complete and which files to download. Then use the \"Retrieve the presigned URL for an export job\" API operation with each `fileKey` in `fileList` to obtain the download URLs.",
        "operationId": "getAuditTrailExportJobs",
        "parameters": [
          {
            "name": "meterId",
            "in": "path",
            "required": true,
            "description": "ID of the meter.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "exportType",
            "in": "query",
            "required": false,
            "description": "Type of the export. `SAMPLE` indicates an export of success records, `ERROR` indicates an export of error records.",
            "schema": {
              "type": "string",
              "enum": [
                "SAMPLE",
                "ERROR"
              ]
            }
          },
          {
            "name": "sessionIds",
            "in": "query",
            "required": false,
            "description": "The session IDs of the meter run. For example, `R-000001, R-000002`.\n",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Page size for pagination.\n",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30,
              "maximum": 100
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "The page number.\n",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAuditTrailExportResponse"
                },
                "example": {
                  "success": true,
                  "data": {
                    "page": 1,
                    "pageSize": 5,
                    "jobs": [
                      {
                        "requestId": "cd3367fb-019d-4600-863f-07c51b7c9e10",
                        "meterId": 709,
                        "query": {
                          "operatorIds": [],
                          "exportType": "SAMPLE",
                          "runType": "NORMAL",
                          "queryToTime": "2025-11-20T23:59:59Z",
                          "queryFromTime": "2025-11-13T07:02:11Z",
                          "format": "csv",
                          "statuses": null,
                          "sessionIds": []
                        },
                        "status": "FINISHED",
                        "count": 15001524,
                        "creationTime": "2025-11-20T16:40:58Z",
                        "completionTime": "2025-11-20T16:49:01Z",
                        "fileList": [
                          "cd3367fb-019d-4600-863f-07c51b7c9e10/audit_trail.csv"
                        ]
                      }
                    ]
                  },
                  "previousPage": null,
                  "nextPage": null
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Meters"
        ],
        "summary": "Create a job to export audit trail data for a meter",
        "description": "Creates a background job to export the audit trail entries for a specific meter in Zuora Mediation. This API is for large-scale, offline access to audit data. Only one export job is processed per tenant at a time, and each export has a record limit, for example, up to 5 million rows per report. Use the returned requestId with the \"Retrieve the list of export jobs for a meter\" API operation to track the job status and retrieve the generated file names from `fileList`, then download them using the \"Retrieve the presigned URL for an export job\" API operation.",
        "operationId": "createAuditTrailExportJob",
        "parameters": [
          {
            "name": "meterId",
            "in": "path",
            "description": "The ID of the meter.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "exportType",
            "in": "query",
            "required": true,
            "description": "Type of the export. `SAMPLE` indicates an export of success records, `ERROR` indicates an export of error records.",
            "schema": {
              "type": "string",
              "enum": [
                "SAMPLE",
                "ERROR"
              ]
            }
          },
          {
            "name": "runType",
            "in": "query",
            "required": true,
            "description": "Specifies the type of run. `DEBUG` indicates a test run, `NORMAL` indicates a live run.",
            "schema": {
              "type": "string",
              "enum": [
                "DEBUG",
                "NORMAL"
              ]
            }
          },
          {
            "name": "sessionIds",
            "in": "query",
            "required": false,
            "description": "A list of specific run IDs to export. For example, `R-000001, R-000002`.\n",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "runStatuses",
            "in": "query",
            "required": false,
            "description": "Filters audit entries by their run status. If omitted, all statuses are included. Statuses are case-sensitive.\nPossible values:\n  - NEVER_RUN\n  - TESTING\n  - TESTING_FAILED\n  - TESTING_PASSED\n  - RUNNING\n  - PAUSED\n  - COMPLETED\n  - FAILED\n  - CANCELED\n  - INITIALIZING\n  - USAGE_PUSHING\n  - PUSH_COMPLETED\n  - CONSUME_COMPLETED        \n",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "operatorIds",
            "in": "query",
            "required": false,
            "description": "A list of operator IDs to filter by. The Operator ID is displayed for each operator node, for both current meters and historic runs. On the Mediation UI, click on a test ID or session ID to see the details of the run.\n",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "queryFromTime",
            "in": "query",
            "required": true,
            "description": "The minimum timestamp for the data to be exported. The standard used is ISO 8601 with timezones.\n",
            "example": "2025-07-01T00:00:00+0530",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "queryToTime",
            "in": "query",
            "required": true,
            "description": "The maximum timestamp for the data to be exported. The standard used is ISO 8601 with timezones.\n",
            "example": "2025-07-01T00:00:00+0530",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "description": "The required format for the exported data. Only the csv format is supported.\n",
            "schema": {
              "type": "string",
              "default": "csv"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportAuditTrailResponse"
                },
                "example": {
                  "success": true,
                  "data": {
                    "requestId": "cd3367fb-019d-4600-863f-07c51b7c9e10"
                  },
                  "previousPage": null,
                  "nextPage": null
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid or missing parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Authentication failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediationErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error - Unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/auditTrail/presignedUrl": {
      "get": {
        "tags": [
          "Meters"
        ],
        "summary": "Retrieve the presigned URL for an export job",
        "description": "Returns a pre-signed URL that you can use to download a specific export file (usually from object storage such as S3). The `fileKey` corresponds to one entry from the `fileList` array in the List API. Use the returned URL in the data field directly in a browser or via a HTTP client to download the export file.",
        "operationId": "getPresignedURLForMeterExport",
        "parameters": [
          {
            "name": "fileKey",
            "in": "query",
            "required": true,
            "description": "The file key of the export file to download.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPresignedURLResponse"
                },
                "example": {
                  "success": true,
                  "data": "https://s3.us-west-2.amazonaws.com/example-bucket/tenant-exports/12345/audit-trail/export-2025-01-01/errors_SAMPLE.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAEXAMPLE123456789%2F20250101%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20250101T000000Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=0000000000000000000000000000000000000000000000000000000000000000"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/export/{meterId}": {
      "get": {
        "tags": [
          "Meters"
        ],
        "summary": "Export details of a specific meter",
        "description": "The Export Meter operation exports the full definition of a specific meter in Zuora Mediation, including metadata, all versions, event schemas, and operator configurations (source, processor, sink). It's useful for reviewing, backing up, or replicating meter setups across environments.\n",
        "operationId": "exportSpecificMeter",
        "parameters": [
          {
            "name": "meterId",
            "in": "path",
            "required": true,
            "description": "ID of the meter to export.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with meter export data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportMeterResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "404": {
            "description": "Meter not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediationErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/import": {
      "post": {
        "tags": [
          "Meters"
        ],
        "summary": "Import a meter definition",
        "description": "Import a meter definition into Zuora Mediation using a file exported from the Export Meter API.\n",
        "operationId": "importMeterDefinition",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ImportMeterRequest"
              }
            }
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string",
              "example": "multipart/form-data"
            },
            "description": "Content type for the request body."
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful import of meter definition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportMeterResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediationErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/files": {
      "post": {
        "tags": [
          "Meters"
        ],
        "summary": "Upload a file",
        "description": "Uploads and stores a file in Zuora Mediation for use in meter processing. Supported formats include CSV, Excel, and JSON. You can specify metadata like headers,\n delimiters, sheets, and data ranges.\n",
        "operationId": "uploadMeteringFile",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The file to store"
                  },
                  "hasHeader": {
                    "type": "boolean",
                    "description": "Indicates if the file has a header (for CSV/Excel)"
                  },
                  "firstRow": {
                    "type": "integer",
                    "description": "Indicates where the first row starts (for CSV format)"
                  },
                  "delimiter": {
                    "type": "string",
                    "description": "Delimiter to separate values (for CSV format)"
                  },
                  "sheet": {
                    "type": "string",
                    "description": "The sheet where data lives (for Excel)"
                  },
                  "dataRange": {
                    "type": "string",
                    "description": "The data range in the sheet (for Excel)"
                  },
                  "resolveFileNameConflict": {
                    "type": "boolean",
                    "description": "Whether to generate a UUID file name"
                  },
                  "targetFolder": {
                    "type": "string",
                    "description": "The target folder to store the file"
                  },
                  "overwriteExistingFile": {
                    "type": "boolean",
                    "description": "Whether to overwrite an existing file"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "File successfully uploaded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateFileResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/usage/bulk/{meterGlobalId}": {
      "post": {
        "summary": "Ingest usage events for a meter",
        "tags": [
          "Meters"
        ],
        "description": "Ingests usage events directly into Zuora Mediation in real time. You can send a single event or batch multiple events in a JSON array to optimize throughput. Each event must conform to the meter's event schema. This operation is supported only for meters that use the Streaming API as their source in Zuora Mediation. You can use this API to bulk-ingest events into a meter only when the meter's source is configured as a Streaming API operator. For meters that use other sources, use the appropriate ingestion mechanism for that source instead.\n",
        "operationId": "ingestUsageEvents",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "name": "meterGlobalId",
            "in": "path",
            "required": true,
            "description": "The global ID of the meter.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "A JSON object or an array of objects representing usage events. Each event must conform to the event schema defined in your meter.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/StreamingEvent"
                  },
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/StreamingEvent"
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Usage event(s) ingested successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StreamingIngestionSuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request due to validation or business logic errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StreamingIngestionAuthError"
                }
              }
            }
          },
          "404": {
            "description": "Resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StreamingIngestionAuthError"
                }
              }
            }
          },
          "413": {
            "description": "Payload too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StreamingIngestionAuthError"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StreamingIngestionAuthError"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/events/bulkDelete": {
      "post": {
        "tags": [
          "Meters"
        ],
        "summary": "Bulk delete events from an event store",
        "description": "Allows you to delete multiple events from an event store in Zuora Mediation using a file that lists the event IDs to be removed. It is useful for cleaning up or correcting data in bulk.\n",
        "operationId": "bulkDeleteEventsFromEventStore",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request. Use multipart/form-data.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/BulkDeleteEventRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response with query ID",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkDeleteEventResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/events/stores/{id}/jobs/latest": {
      "get": {
        "tags": [
          "Meters"
        ],
        "summary": "Retrieve the latest query job of a specific event store",
        "description": "Retrieves the most recent query job executed on a specific event store in Zuora Mediation. It returns metadata such as query type (e.g., DELETE), status, record counts, and timestamps.",
        "operationId": "getLatestQueryJobOfSpecificEventStore",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "ID of the event store.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with latest event store query job details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LatestEventStoreJobResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "404": {
            "description": "Event store not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediationErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/event-store-queries": {
      "post": {
        "tags": [
          "Meters"
        ],
        "summary": "Submit an event store query",
        "description": "Submits a SQL-style asynchronous query to the Event Store to retrieve and inspect metering events for validation, troubleshooting, and reconciliation. The API returns a `queryId` that can be used to poll and fetch paginated results.",
        "operationId": "submitEventStoreQuery",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitEventStoreQueryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitEventStoreQueryResponse"
                },
                "example": {
                  "success": true,
                  "data": {
                    "queryId": "b9a5b91ab34c42b1b9399c0e76245e3f7f76610637ec4d17abdcd4214493814e"
                  },
                  "previousPage": "null",
                  "nextPage": "null"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid or missing parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Authentication failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediationErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error - Unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/meters/event-store-queries/{queryId}": {
      "get": {
        "tags": [
          "Meters"
        ],
        "summary": "Retrieve the results for an event store query",
        "description": "Retrieves paginated result rows and column metadata for a previously submitted Event Store query using its `queryId`, including total row count, row-level field values, and readiness status. Query execution is asynchronous.",
        "operationId": "getQueryResultsForEventStore",
        "parameters": [
          {
            "name": "queryId",
            "in": "path",
            "required": true,
            "description": "ID of the query.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Page size for pagination.\n",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20,
              "maximum": 50
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "The page number.\n",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "description": "Specify the content type of the request body. Use application/json.",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetQueryResultsResponse"
                },
                "examples": {
                  "Successful query results": {
                    "value": {
                      "success": true,
                      "data": {
                        "totalCount": 1,
                        "columns": [
                          {
                            "name": "value 1",
                            "logicalType": {
                              "type": "VARCHAR",
                              "nullable": true,
                              "length": 2147483647
                            },
                            "comment": null
                          },
                          {
                            "name": "value 2",
                            "logicalType": {
                              "type": "VARCHAR",
                              "nullable": true,
                              "length": 2147483647
                            },
                            "comment": null
                          }
                        ],
                        "rows": [
                          {
                            "kind": "INSERT",
                            "fields": [
                              10,
                              "20%"
                            ]
                          }
                        ],
                        "ready": true
                      }
                    }
                  },
                  "Failed query execution": {
                    "value": {
                      "success": true,
                      "data": {
                        "isFailed": true,
                        "message": "<error message description>",
                        "ready": true
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/commitments": {
      "get": {
        "tags": [
          "Commitments"
        ],
        "summary": "List commitments for an account",
        "description": "Retrieves a paginated list of commitments for a commitment owner account.",
        "operationId": "getCommitments",
        "parameters": [
          {
            "name": "accountNumber",
            "in": "query",
            "required": true,
            "description": "Account number to fetch commitments for.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Filter commitments by type.",
            "schema": {
              "type": "string",
              "format": "CommitmentTypeEnum",
              "enum": [
                "MinCommitment",
                "MaxCommitment"
              ],
              "example": "MinCommitment"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number for pagination.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Page size for pagination.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCommitmentsResponse"
                },
                "example": {
                  "total": 1,
                  "page": 1,
                  "page_size": 20,
                  "commitments": [
                    {
                      "id": "8ad08ca797ef6ca50197f3cce6267991",
                      "status": "Active",
                      "version": 1,
                      "currency": "USD",
                      "startDate": "2020-01-01",
                      "endDate": "2020-12-31",
                      "totalAmount": 100,
                      "orderNumber": "O-0001",
                      "orderId": "00989e98483e00030a2733ee989e9815",
                      "accountId": "8a8aa0ac7f3b4c1d017f3b4c1d0a0001",
                      "accountNumber": "ACC-0001",
                      "commitmentNumber": "TW-0001",
                      "name": "Example Commitment",
                      "type": "MinCommitment",
                      "description": "This a example commitment.",
                      "priority": 1,
                      "eligibleAccountConditions": {
                        "field": "Account.AccountNumber",
                        "operator": "eq",
                        "value": "ACC-0001",
                        "conditions": [
                          {}
                        ],
                        "relation": "and"
                      },
                      "eligibleChargeConditions": {
                        "field": "RatePlanCharge.ChargeNumber",
                        "operator": "in",
                        "value": "C-0001,C-0002",
                        "conditions": [
                          {}
                        ],
                        "relation": "and"
                      },
                      "periodAlignmentOption": "SpecificDate",
                      "specificPeriodAlignmentDate": "2020-01-15",
                      "customFields": {},
                      "excludeItemBookingFromRevenueAccounting": true,
                      "adjustmentLiabilityAccountingCode": "Accounts Receivable",
                      "adjustmentRevenueAccountingCode": "Accounts Receivable",
                      "contractAssetAccountingCode": "Accounts Receivable",
                      "contractLiabilityAccountingCode": "Accounts Receivable",
                      "contractRecognizedRevenueAccountingCode": "Accounts Receivable",
                      "deferredRevenueAccountingCode": "Accounts Receivable",
                      "excludeItemBillingFromRevenueAccounting": false,
                      "isAllocationEligible": true,
                      "isUnbilled": false,
                      "recognizedRevenueAccountingCode": "Accounts Receivable",
                      "revenueRecognitionRule": "Recognize upon invoicing",
                      "unbilledReceivablesAccountingCode": "Accounts Receivable",
                      "revenueRecognitionTiming": "Upon Order Activation Date",
                      "revenueAmortizationMethod": "string",
                      "accountReceivableAccountingCode": "Accounts Receivable",
                      "taxable": true,
                      "taxCode": "SalesTax_US",
                      "taxMode": "TaxInclusive"
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      }
    },
    "/commitments/{commitmentKey}": {
      "get": {
        "tags": [
          "Commitments"
        ],
        "summary": "Retrieve a commitment",
        "description": "Retrieves the details of a specific commitment using its ID or number.",
        "operationId": "getCommitmentByKey",
        "parameters": [
          {
            "name": "commitmentKey",
            "in": "path",
            "required": true,
            "description": "The unique identifier (ID or number) of the commitment.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCommitmentResponse"
                },
                "example": {
                  "id": "8ad08ca797ef6ca50197f3cce6267991",
                  "status": "Active",
                  "version": 1,
                  "currency": "USD",
                  "startDate": "2020-01-01",
                  "endDate": "2020-12-31",
                  "amount": 100,
                  "orderNumber": "O-0001",
                  "orderId": "00989e98483e00030a2733ee989e9815",
                  "accountId": "8a8aa0ac7f3b4c1d017f3b4c1d0a0001",
                  "accountNumber": "ACC-0001",
                  "commitmentNumber": "TW-0001",
                  "name": "Example Commitment",
                  "type": "MinCommitment",
                  "description": "This a example commitment.",
                  "priority": 1,
                  "eligibleAccountConditions": {
                    "field": "Account.AccountNumber",
                    "operator": "eq",
                    "value": "ACC-0001",
                    "conditions": [
                      {}
                    ],
                    "relation": "and"
                  },
                  "eligibleChargeConditions": {
                    "field": "RatePlanCharge.ChargeNumber",
                    "operator": "in",
                    "value": "C-0001,C-0002",
                    "conditions": [
                      {}
                    ],
                    "relation": "and"
                  },
                  "periodAlignmentOption": "SpecificDate",
                  "specificPeriodAlignmentDate": "2020-01-15",
                  "customFields": {},
                  "excludeItemBookingFromRevenueAccounting": true,
                  "adjustmentLiabilityAccountingCode": "Accounts Receivable",
                  "adjustmentRevenueAccountingCode": "Accounts Receivable",
                  "contractAssetAccountingCode": "Accounts Receivable",
                  "contractLiabilityAccountingCode": "Accounts Receivable",
                  "contractRecognizedRevenueAccountingCode": "Accounts Receivable",
                  "deferredRevenueAccountingCode": "Accounts Receivable",
                  "excludeItemBillingFromRevenueAccounting": false,
                  "isAllocationEligible": true,
                  "isUnbilled": false,
                  "recognizedRevenueAccountingCode": "Accounts Receivable",
                  "revenueRecognitionRule": "Recognize upon invoicing",
                  "unbilledReceivablesAccountingCode": "Accounts Receivable",
                  "revenueRecognitionTiming": "Upon Order Activation Date",
                  "revenueAmortizationMethod": "string",
                  "accountReceivableAccountingCode": "Accounts Receivable",
                  "taxable": true,
                  "taxCode": "SalesTax_US",
                  "taxMode": "TaxInclusive"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      }
    },
    "/commitments/periods": {
      "get": {
        "tags": [
          "Commitments"
        ],
        "summary": "List periods for a commitment",
        "description": "Lists periods of the specified commitment. You can paginate the results using `page` and `pageSize` query parameters.\n",
        "operationId": "getCommitmentPeriods",
        "parameters": [
          {
            "name": "commitmentKey",
            "in": "query",
            "required": false,
            "description": "The unique identifier or number of the commitment. Required if `startDate`, `endDate`, and `accountNumber` are not all provided. Either specify `commitmentKey`, or provide `startDate`, `endDate`, and `accountNumber` together.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "required": false,
            "description": "Start date of the billing period in `YYYY-MM-DD` format. Date filters must be up to 5 years apart. Required if `commitmentKey` is not provided. Must be used together with `endDate` and `accountNumber`.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "required": false,
            "description": "End date of the billing period in `YYYY-MM-DD` format. Date filters must be up to 5 years apart. Required if `commitmentKey` is not provided. Must be used together with `startDate` and `accountNumber`.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "accountNumber",
            "in": "query",
            "required": false,
            "description": "Account number to which the commitment belongs to. Required if `commitmentKey` is not provided. Must be used together with `startDate` and `endDate`.\n",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number for pagination.\n",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Page size for pagination.\n",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListCommitmentPeriodsResponse"
                },
                "example": {
                  "periods": [
                    {
                      "id": "0df89cf12e650006ac13624398764f1b",
                      "commitmentId": "8ad08ca797ef6ca50197f3cce6267991",
                      "commitmentNumber": "TW-0001",
                      "currency": "USD",
                      "priority": 1,
                      "version": 1,
                      "type": "MinCommitment",
                      "startDate": "2024-01-01",
                      "endDate": "2024-12-31",
                      "isProrated": false,
                      "amount": 100,
                      "status": "Active"
                    }
                  ],
                  "total": 1,
                  "page": 1,
                  "pageSize": 1
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      }
    },
    "/commitments/{commitmentId}/balance": {
      "get": {
        "tags": [
          "Commitments"
        ],
        "summary": "Retrieve the balance for a commitment",
        "description": "Retrieves the balance amount for a specific commitment for current and past periods. Future periods are not covered.\n\n**Note**: This API will not work for tenants that are configured to skip commitment evaluation in Zuora Billing, and calls to this API are rejected. \n",
        "operationId": "getCommitmentBalance",
        "parameters": [
          {
            "name": "commitmentId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the commitment.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number for pagination.\n",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Page size for pagination.\n",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCommitmentBalanceResponse"
                },
                "example": {
                  "total": 1,
                  "page": 1,
                  "pageSize": 1,
                  "periods": [
                    {
                      "id": "6cf8cc0ddddc0061ac13d7a998bc18bb",
                      "status": "ACTIVE",
                      "startDate": "2024-01-01",
                      "endDate": "2024-12-31",
                      "balance": 500,
                      "committedAmount": 1000,
                      "totalSpend": 500
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      }
    },
    "/commitments/{commitmentKey}/schedules": {
      "get": {
        "tags": [
          "Commitments"
        ],
        "summary": "List schedules for a commitment",
        "description": "Retrieves all the schedules for a specific commitment.\n",
        "operationId": "listCommitmentSchedules",
        "parameters": [
          {
            "name": "commitmentKey",
            "in": "path",
            "required": true,
            "description": "The unique identifier (ID or number) of the commitment.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number for pagination.\n",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Page size for pagination.\n",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCommitmentScheduleResponse"
                },
                "example": {
                  "schedules": [
                    {
                      "id": "0df89cf12e650006ac13624398764f1b",
                      "commitmentId": "8ad08ca797ef6ca50197f3cce6267991",
                      "commitmentNumber": "TW-0001",
                      "version": 1,
                      "startDate": "2020-01-01",
                      "endDate": "2020-12-31",
                      "totalAmount": 300,
                      "amount": 200,
                      "amountBase": "CommitmentPeriod",
                      "periodType": "SpecificMonths",
                      "specificPeriodLength": 4,
                      "status": "Active"
                    }
                  ],
                  "total": 1,
                  "page": 1,
                  "pageSize": 20
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      }
    },
    "/v1/adjustments": {
      "get": {
        "description": "Describes how to retrieve detailed information about delivery adjustments of a subscription.\n\n**Note**: The Delivery Adjustments feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features) in the Knowledge Center.\n",
        "operationId": "GET_Subscription_Adjustments",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "A subscription number.\n",
            "in": "query",
            "name": "subscription-number",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "adjustments": [
                        {
                          "adjustmentId": "4028818886a2149b0186a237d0ff003b",
                          "adjustmentNumber": "ADJ-00000001",
                          "amount": -5,
                          "billingDate": "2023-02-26",
                          "chargeNumber": "C-00000001",
                          "creditMemoNumber": "CM00000001",
                          "deferredRevenueAccountingCode": "string",
                          "deliveryDate": "2023-02-26",
                          "deliveryDay": "sunday",
                          "reason": "string",
                          "recognizedRevenueAccountingCode": "string",
                          "revenueRecognitionRuleName": "string",
                          "status": "Billed",
                          "subscriptionNumber": "A-S00000001"
                        },
                        {
                          "adjustmentId": "4028818886a2149b0186a2404f67003c",
                          "adjustmentNumber": "ADJ-00000002",
                          "amount": -5,
                          "billingDate": "2023-02-27",
                          "chargeNumber": "C-00000001",
                          "creditMemoNumber": "CM00000002",
                          "debitMemoNumber": "DM00000002",
                          "deferredRevenueAccountingCode": "string",
                          "deliveryDate": "2023-02-27",
                          "deliveryDay": "monday",
                          "reason": "string",
                          "recognizedRevenueAccountingCode": "string",
                          "revenueRecognitionRuleName": "string",
                          "status": "Cancelled",
                          "subscriptionNumber": "A-S00000001"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETAdjustmentsBySubscriptionNumberResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specify a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all delivery adjustments of a subscription",
        "tags": [
          "Delivery Adjustments"
        ]
      },
      "post": {
        "description": "Describes how to create one or more delivery adjustments for a subscription. \n\n**Notes**: \n- The Delivery Adjustments feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features) in the Knowledge Center.\n- This operation supports a partial success scenario: when at least one eligible delivery adjustment exists for a given time period, “success = true” as well as eligible delivery adjustments and ineligible delivery adjustments are returned in the response; only when no delivery adjustment is eligible, “success=false” is returned.\n",
        "operationId": "Create_Adjustment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTCreateBillingAdjustmentRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "adjustments": [
                        {
                          "adjustmentId": "4028818886a2149b0186a237d0ff003b",
                          "adjustmentNumber": "ADJ-00000001",
                          "amount": -5,
                          "billingDate": "2023-02-26",
                          "chargeNumber": "C-00000001",
                          "creditMemoNumber": "CM00000001",
                          "deferredRevenueAccountingCode": "string",
                          "deliveryDate": "2023-02-26",
                          "deliveryDay": "sunday",
                          "eligible": true,
                          "reason": "string",
                          "recognizedRevenueAccountingCode": "string",
                          "revenueRecognitionRuleName": "string",
                          "status": "Billed",
                          "subscriptionNumber": "A-S00000001"
                        }
                      ],
                      "ineligibleAdjustments": [
                        {
                          "adjustmentId": null,
                          "adjustmentNumber": null,
                          "amount": null,
                          "billingDate": null,
                          "chargeNumber": "C-00000001",
                          "deferredRevenueAccountingCode": "string",
                          "deliveryDate": "2023-02-27",
                          "deliveryDay": "monday",
                          "eligible": false,
                          "errorMessage": "Subscription does not have a delivery scheduled for this day",
                          "reason": "string",
                          "recognizedRevenueAccountingCode": "string",
                          "revenueRecognitionRuleName": "string",
                          "status": null,
                          "subscriptionNumber": "A-S00000001"
                        }
                      ],
                      "success": true,
                      "totalAmount": -5,
                      "totalNumberOfDeliveries": 1
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETAdjustmentsResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specify a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a delivery adjustment",
        "tags": [
          "Delivery Adjustments"
        ]
      }
    },
    "/v1/adjustments/preview": {
      "post": {
        "description": "Describes how to preview delivery adjustments of a subscription.\n\n**Notes**: \n- The Delivery Adjustments feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features) in the Knowledge Center.\n- This operation supports a partial success scenario: when at least one eligible delivery adjustment exists for a given time period, “success = true” as well as eligible delivery adjustments and ineligible delivery adjustments are returned in the response; only when no delivery adjustment is eligible, “success=false” is returned.\n",
        "operationId": "Preview_Adjustment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTPreviewBillingAdjustmentRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "adjustments": [
                        {
                          "adjustmentId": "null",
                          "adjustmentNumber": "null",
                          "amount": -5,
                          "billingDate": "2023-02-26",
                          "chargeNumber": "C-00000001",
                          "creditMemoNumber": null,
                          "deferredRevenueAccountingCode": "string",
                          "deliveryDate": "2023-02-26",
                          "deliveryDay": "sunday",
                          "eligible": true,
                          "reason": "string",
                          "recognizedRevenueAccountingCode": "string",
                          "revenueRecognitionRuleName": "string",
                          "status": null,
                          "subscriptionNumber": "A-S00000001"
                        }
                      ],
                      "ineligibleAdjustments": [
                        {
                          "adjustmentId": null,
                          "adjustmentNumber": null,
                          "amount": null,
                          "billingDate": null,
                          "chargeNumber": "C-00000001",
                          "deferredRevenueAccountingCode": "string",
                          "deliveryDate": "2023-02-27",
                          "deliveryDay": "monday",
                          "eligible": false,
                          "errorMessage": "Subscription does not have a delivery scheduled for this day",
                          "reason": "string",
                          "recognizedRevenueAccountingCode": "string",
                          "revenueRecognitionRuleName": "string",
                          "status": null,
                          "subscriptionNumber": "A-S00000001"
                        }
                      ],
                      "success": true,
                      "totalAmount": -5,
                      "totalNumberOfDeliveries": 1
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETAdjustmentsResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specify a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Preview a delivery adjustment",
        "tags": [
          "Delivery Adjustments"
        ]
      }
    },
    "/v1/adjustments/{adjustment-key}": {
      "get": {
        "description": "Describes how to retrieve detailed information about a delivery adjustment.\n\n**Note**: The Delivery Adjustments feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features) in the Knowledge Center.\n",
        "operationId": "GET_Adjustment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The delivery adjustment ID or number to retrieve.",
            "in": "path",
            "name": "adjustment-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "adjustmentId": "4028818886a2149b0186a2404f67003c",
                      "adjustmentNumber": "ADJ-00000001",
                      "amount": -5,
                      "billingDate": "2023-02-26",
                      "chargeNumber": "C-00000001",
                      "creditMemoNumber": "CM00000001",
                      "deferredRevenueAccountingCode": "string",
                      "deliveryDate": "2023-02-26",
                      "deliveryDay": "sunday",
                      "reason": "string",
                      "recognizedRevenueAccountingCode": "string",
                      "revenueRecognitionRuleName": "string",
                      "status": "Billed",
                      "subscriptionNumber": "A-S00000001"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETAdjustmentByIdResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specify a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a delivery adjustment",
        "tags": [
          "Delivery Adjustments"
        ]
      }
    },
    "/v1/adjustments/{adjustmentId}/cancel": {
      "put": {
        "description": "Describes how to cancel an unbilled delivery adjustment.\n\n**Note**: The Delivery Adjustments feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Enable billing features by yourself](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Settings/Manage_Features) in the Knowledge Center.\n",
        "operationId": "PUT_CancelAdjustment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the delivery adjustment to cancel.\n",
            "in": "path",
            "name": "adjustmentId",
            "required": true,
            "schema": {
              "format": "UUID",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelBillingAdjustmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "debitMemoNumber": "DM00000001",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCancelAdjustmentResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specify a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a delivery adjustment",
        "tags": [
          "Delivery Adjustments"
        ]
      }
    },
    "/v1/billing-documents": {
      "get": {
        "description": "Retrieves the information about all billing documents associated with a specified account. The billing documents contain invoices, credit memos, and debit memos.\n\nTo retrieve information about credit memos and debit memos, you must have the Invoice Settlement feature enabled. \n\nYou can use query parameters to restrict the data returned in the response.\n\nExamples:\n- /billing-documents?accountId=4028905f5e4feb38015e50af9aa002d1&sort=+documentDate\n- /billing-documents?accountId=4028905f5e4feb38015e50af9aa002d1&status=Posted\n- /billing-documents?accountNumber=A00000001&sort=+documentDate\n- /billing-documents?accountNumber=A00000001&status=Posted\n",
        "operationId": "GET_BillingDocuments",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The ID of the customer account that the billing documents are associated with.\n\n**Note**: When retrieving information about all billing documents associated with an account, you must specify either `accountId` or `accountNumber` in the query parameters.\n",
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "The number of the customer account that the billing documents are associated with.\n\n**Note**: When retrieving information about all billing documents associated with an account, you must specify either `accountId` or `accountNumber` in the query parameters.\n",
            "in": "query",
            "name": "accountNumber",
            "required": false,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "The date of the billing document. It represents the invoice date for invoices, credit memo date for credit memos, and debit memo date for debit memos.\n",
            "in": "query",
            "name": "documentDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "The status of the billing document.\n",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "Draft",
                "Posted",
                "Canceled",
                "Error"
              ],
              "type": "string"
            }
          },
          {
            "description": "This parameter restricts the order of the data returned in the response. You can use this parameter to supply a dimension you want to sort on.\n\nIf you do not specify any sortable field, the response data is sorted by the `documentDate` field in descending order.\n\nA sortable field uses the following form: \n\n*operator* *field_name*\n\nYou can use at most two sortable fields in one URL path. Use a comma to separate sortable fields. For example:  *operator* *field_name*, *operator* *field_name*  \n\n*operator* is used to mark the order of sequencing. The operator is optional. If you only specify the sortable field without any operator, the response data is sorted in descending order by this field.  \n\n  - The `-` operator indicates an ascending order.\n  - The `+` operator indicates a descending order.\n\n*field_name* indicates the name of a sortable field. The supported sortable fields of this operation are as below:\n\n  - documentDate\n  - documentType\n\n  \nExamples:\n- /billing-documents?accountId=4028905f5e4feb38015e50af9aa002d1\n  &sort=+documentDate,-documentType\n- /billing-documents?accountId=4028905f5e4feb38015e50af9aa002d1\n  &status=Posted&sort=+documentDate&page=2&pageSize=15\n",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "documents": [
                        {
                          "accountId": "4028905f5e4feb38bbb50af9aa002d1",
                          "accountNumber": "A00000001",
                          "amount": 100,
                          "balance": 90,
                          "documentDate": "2017-10-01",
                          "documentNumber": "INV-0000001",
                          "documentType": "Invoice",
                          "id": "4028905f5e4jjj015e50af9aa002d1",
                          "status": "Posted",
                          "currency": "USD"
                        },
                        {
                          "accountId": "4028905f5e4feb38b111b50af9aa002d1",
                          "accountNumber": "A00000001",
                          "amount": 100,
                          "balance": 90,
                          "documentDate": "2017-09-01",
                          "documentNumber": "CM-0000001",
                          "documentType": "CreditMemo",
                          "id": "4028905f5e4jbbb015e50af9aa002d1",
                          "status": "Posted",
                          "currency": "USD"
                        },
                        {
                          "accountId": "4028905f5e4feb3833b50af9aa002d1",
                          "accountNumber": "A00000001",
                          "amount": 100,
                          "balance": 90,
                          "documentDate": "2017-07-01",
                          "documentNumber": "DM-0000001",
                          "documentType": "DebitMemo",
                          "id": "4028905f5e4jccc015e50af9aa002d1",
                          "status": "Posted",
                          "currency": "USD"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/BillingDocumentQueryResponseElementType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List billing documents for an account",
        "tags": [
          "Billing Documents"
        ],
        "x-code-samples": [
          {
            "label": "Curl",
            "lang": "curl",
            "source": "curl -X GET -H \"Authorization: Bearer 6d151216ef504f65b8ff6e9e9e8356d3\" -H \"Content-Type: application/json\" \"https://rest.sandbox.eu.zuora.com/v1/billing-documents?accountId=402892c74c9193cd014c91d35b0a0132\"\n"
          }
        ]
      }
    },
    "/v1/accounts/billing-documents/files/deletion-jobs": {
      "post": {
        "description": "Creates an asynchronous job to permanently delete all billing document PDF files for specific accounts. \n\nAfter the deletion job is completed, all billing document PDF files are permanently deleted. To retrieve the status of a deletion job, call [Retrieve a job of hard deleting billing document files](https://developer.zuora.com/api-references/api/operation/GET_BillingDocumentFilesDeletionJob).\n\n**Note**: This operation can be used only if you have the Billing user permission \"Hard Delete Billing Document Files\" enabled. \n",
        "operationId": "POST_BillingDocumentFilesDeletionJob",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTBillingDocumentFilesDeletionJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "2c92c8f83dc4f752013dc72c24ee016c",
                      "status": "Pending",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTBillingDocumentFilesDeletionJobResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a job to hard delete billing document files",
        "tags": [
          "Billing Documents"
        ]
      }
    },
    "/v1/accounts/billing-documents/files/deletion-jobs/{jobId}": {
      "get": {
        "description": "Retrieves information about an asynchronous job of permanently deleting all billing document PDF files for specific accounts.\n\n**Note**: This operation can be used only if you have the Billing user permission \"Hard Delete Billing Document Files\" enabled. \n",
        "operationId": "GET_BillingDocumentFilesDeletionJob",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a billing document file deletion job. For example, 2c92c8f83dc4f752013dc72c24ee016c.",
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "2c92c8f83dc4f752013dc72c24ee016c",
                      "status": "Pending",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETBillingDocumentFilesDeletionJobResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a job of hard deleting billing document files",
        "tags": [
          "Billing Documents"
        ]
      }
    },
    "/v1/accounts/{key}/billing-documents/generate": {
      "post": {
        "description": "Generates draft or posted billing documents for a specified account. You can also generate billing documents for specified subscriptions of a specified account. The billing documents contain invoices and credit memos. To generate credit memos, you must have the Invoice Settlement feature enabled.\n\n**Note**: You cannot generate billing documents for cancelled or suspended subscriptions.\n",
        "operationId": "POST_GenerateBillingDocuments",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the customer account that billing documents are generated for. For example, 8a8082e65b27f6c3015ba3e326b26419 or AC0000001.\n",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostGenerateBillingDocumentType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "invoices": [
                        {
                          "id": "8ad084db909fae930190a121c84957ff"
                        }
                      ],
                      "creditMemos": [],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GenerateBillingDocumentResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Generate billing documents by account ID",
        "tags": [
          "Billing Documents"
        ]
      }
    },
    "/v1/invoices": {
      "post": {
        "description": "Creates a standalone invoice for selling physical goods, services or other items on a non-recurring basis to your subscription customers.\n\nTo use this operation, you must have the **Modify Invoice** and at least one of the **Create Standalone Invoice With Product Catalog** or **Create Standalone Invoice Without Product Catalog** user permissions.\nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/System_Management/Administrator_Settings/User_Roles/d_Billing_Roles\" target=\"_blank\">Billing Roles</a> for more information.\n",
        "operationId": "POST_StandaloneInvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostInvoiceType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad084db909fae930190a121c84957ff",
                      "invoiceNumber": "INV00000155",
                      "accountId": "8ad09be48db5aba7018db604776d4854",
                      "amount": 100,
                      "amountWithoutTax": 100,
                      "discount": 0,
                      "invoiceDate": "2024-07-30",
                      "dueDate": "2024-08-29",
                      "autoPay": false,
                      "comments": null,
                      "status": "Draft",
                      "taxAmount": 0,
                      "taxExemptAmount": 0,
                      "transferredToAccounting": null,
                      "sourceType": "Standalone",
                      "billToContactId": null,
                      "soldToContactId": null,
                      "templateId": null,
                      "paymentTerm": null,
                      "sequenceSetId": null,
                      "adjustmentAmount": 0,
                      "balance": 100,
                      "billToContactSnapshotId": null,
                      "creditMemoAmount": 0,
                      "includesOneTime": true,
                      "includesRecurring": true,
                      "includesUsage": true,
                      "lastEmailSentDate": null,
                      "paymentAmount": 0,
                      "postedBy": null,
                      "postedDate": null,
                      "refundAmount": 0,
                      "soldToContactSnapshotId": null,
                      "source": "API",
                      "sourceId": null,
                      "targetDate": null,
                      "taxMessage": null,
                      "taxStatus": "Complete",
                      "createdById": "b243314d594646d3b2651aeedd4be47e",
                      "createdDate": "2024-07-11 02:31:04",
                      "updatedById": "b243314d594646d3b2651aeedd4be47e",
                      "updatedDate": "2024-07-11 02:31:04",
                      "billRunId": null,
                      "currency": "USD",
                      "invoiceGroupNumber": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PostInvoiceResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a standalone invoice",
        "tags": [
          "Invoices"
        ]
      },
      "put": {
        "description": "Updates multiple invoices in batches with one call. The following tutorials demonstrate how to use this operation:\n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_both_subscription_and_non-subscription_transactions/Unified_Invoicing/D_Add_and_delete_invoice_items_of_draft_standalone_invoices\"\n  target=\"_blank\">Add and delete invoice items of draft standalone invoices</a>\n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_both_subscription_and_non-subscription_transactions/Unified_Invoicing/Edit_due_dates_of_draft_standalone_invoices\"\n  target=\"_blank\">Edit due dates of draft standalone invoices</a>\n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_both_subscription_and_non-subscription_transactions/Unified_Invoicing/Edit_invoice_item_prices_and_custom_fields_of_draft_standalone_invoices\"\n  target=\"_blank\">Edit invoice item prices and custom fields of draft standalone invoices</a>\n  \n\n### Limitations\n\n\n  - You can update a maximum of 50 invoices by one call.\n",
        "operationId": "PUT_BatchUpdateInvoices",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutBatchInvoiceType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update invoices",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/invoices/batch": {
      "post": {
        "description": "Creates multiple standalone invoices for selling physical goods, services or other items on a non-recurring basis to your subscription customers.\n\n\nTo use this operation, you must have the **Modify Invoice** and at least one of the **Create Standalone Invoice With Product Catalog** or **Create Standalone Invoice Without Product Catalog** user permissions.\nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/System_Management/Administrator_Settings/User_Roles/d_Billing_Roles\" target=\"_blank\">Billing Roles</a> for more information.\n\n### Limitations\n\nThis operation has the following limitations:\n\n* You can create a maximum of 50 invoices in one request.\n\n* You can create a maximum of 1,000 invoice items in one request.\n",
        "operationId": "POST_StandaloneInvoices",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostBatchInvoicesType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "invoices": [
                        {
                          "IntegrationId__NS": "string",
                          "IntegrationStatus__NS": "string",
                          "SyncDate__NS": "string",
                          "accountId": "4028818484f483d20184f4f7efc40001",
                          "adjustmentAmount": 0,
                          "amount": 700,
                          "amountWithoutTax": 700,
                          "autoPay": true,
                          "balance": 700,
                          "billRunId": "4028818484f483d20184f50064950035",
                          "billToContactSnapshotId": "402881e522cf4f9b0122cf5d82860004",
                          "comments": "",
                          "complexity__c": "Middle",
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2022-12-08 19:49:16",
                          "currency": "USD",
                          "description__c": "description",
                          "discount": 0,
                          "dueDate": "2022-11-30",
                          "id": "4028818484f483d20184f5006b97003f",
                          "includesOneTime": true,
                          "includesRecurring": true,
                          "includesUsage": true,
                          "invoiceDate": "2022-10-31",
                          "invoiceGroupNumber": "N-0001",
                          "invoiceNumber": "INV00000001",
                          "lastEmailSentDate": "2022-12-08 19:51:16",
                          "paymentAmount": 0,
                          "postedBy": "402881e522cf4f9b0122cf5d82860002",
                          "postedDate": "2022-12-09",
                          "refundAmount": 0,
                          "sequenceSetId": "402881e522cf4f9b0122cf5d82860003",
                          "soldToContactSnapshotId": "402881e522cf4f9b0122cf5d82860005",
                          "source": "BillRun",
                          "sourceId": "BR-00000001",
                          "sourceType": "Subscription",
                          "status": "Posted",
                          "success": true,
                          "targetDate": "2022-10-31",
                          "transferredToAccounting": "string",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2022-12-08 19:51:23"
                        },
                        {
                          "objectIndex": 1,
                          "processId": "CA037C0B8C5B0682",
                          "reasons": [
                            {
                              "code": 58490020,
                              "message": "No account is found with accountId ff8080817cda56fa017cda87aaa2071f."
                            }
                          ],
                          "success": false
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PostBatchInvoiceResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create standalone invoices",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/invoices/bulk-post": {
      "post": {
        "description": "Posts multiple invoices.\n\nYou can post a maximum of 50 invoices in one single request. Additionally, you can also update invoice dates while posting the invoices.\n**Note** : This operation is synchronous and invoices within the bulk request are posted one by one.  The maximum batch size depends on the posting performance, which varies with invoice complexity and integrations with external tax engines.\n",
        "operationId": "POST_PostInvoices",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTInvoicesBatchPostType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "invoices": [
                        {
                          "id": "402890555a7e9791015a7f15fe440123",
                          "success": true
                        },
                        {
                          "id": "402890555a7e9791015a7f15fe44013a",
                          "success": true
                        },
                        {
                          "id": "ff808081804f25b001804f2d8971079f",
                          "processId": "F3D4DAF98E6CE569",
                          "reasons": [
                            {
                              "code": 59210020,
                              "message": "Only invoices with Draft status can be posted."
                            }
                          ],
                          "success": false
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/InvoicesBatchPostResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Post invoices",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/invoices/pdf-status": {
      "get": {
        "description": "Retrieves the PDF generation statuses of a batch of invoices. ",
        "operationId": "GetInvoicePdfStatus",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The IDs or numbers of the invoices separated by commas. For example - `?invoiceKeys=2c92c8955bd63cc1015bd7c151af02ab,4b65b8605bd63cc1015bd7c151af02cd,INV-0000001`. A maximum of 50 keys can be entered in this field.",
            "in": "query",
            "name": "invoiceKeys",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "invoiceFiles": [
                    {
                      "invoiceId": "402824aa8cc894d5018cc8a120576881",
                      "invoiceNumber": "INV00000003",
                      "pdfGenerationStatus": "Generated",
                      "createdOn": "2024-01-01 11:35:56",
                      "updatedOn": "2024-01-01 11:35:56",
                      "pdfFileUrl": "/v1/files/2c98901f62d7d83d0162d7facea6262d"
                    },
                    {
                      "invoiceId": "2c98908a904dfc2601904e6e14090241",
                      "invoiceNumber": "INV00000004",
                      "pdfGenerationStatus": "Error",
                      "createdOn": "2024-01-02 10:14:13",
                      "updatedOn": "2024-01-02 10:14:13",
                      "errorCode": "INVALID_TEMPLATE",
                      "errorMessage": "Unknown merge filed chargeNumber__c"
                    },
                    {
                      "invoiceId": "513935bb9dd905e6129dd9b231687992",
                      "invoiceNumber": "INV00000005",
                      "pdfGenerationStatus": "Pending",
                      "createdOn": "2024-01-01 11:35:56",
                      "updatedOn": "2024-01-01 11:35:56"
                    }
                  ],
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/GetInvoicePdfStatusBatchResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "processId",
                  "reasons": [
                    {
                      "code": "50000020",
                      "message": "Credit memo key is required"
                    }
                  ],
                  "success": false
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "message": "Authentication error"
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              },
              "WWW-Authenticate": {
                "description": "The value of this header is: ``` Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API ``` ",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve the PDF file generation status of invoices",
        "tags": [
          "Invoices"
        ],
        "x-accepts": "application/json"
      }
    },
    "/v1/invoices/{invoiceKey}": {
      "delete": {
        "description": "Deletes a specific invoice.\n\nWhether to delete an invoice synchronously or asynchronously depends on the number of invoice items contained in the invoice. By default, if an invoice contains less than 100 items, the invoice is deleted synchronously. Otherwise, the invoice is deleted asynchronously. If you want to change the threshold, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>.\n",
        "operationId": "DELETE_DeleteInvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the invoice to be deleted. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "40288ae9600808280160081dc9c13f15",
                      "jobId": "40288ae9600808280160081db1533506",
                      "jobStatus": "Completed",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/DeleteInvoiceResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an invoice",
        "tags": [
          "Invoices"
        ]
      },
      "get": {
        "description": "Retrieves a specific invoice.\n",
        "operationId": "Get_GetInvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "IntegrationId__NS": "string",
                      "IntegrationStatus__NS": "string",
                      "SyncDate__NS": "string",
                      "accountId": "4028818484f483d20184f4f7efc40001",
                      "adjustmentAmount": 0,
                      "amount": 700,
                      "amountWithoutTax": 700,
                      "autoPay": true,
                      "balance": 700,
                      "billRunId": "4028818484f483d20184f50064950035",
                      "billToContactSnapshotId": "402881e522cf4f9b0122cf5d82860010",
                      "comments": "",
                      "complexity__c": "Middle",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2022-12-08 19:49:16",
                      "currency": "USD",
                      "description__c": "description",
                      "discount": 0,
                      "dueDate": "2022-11-30",
                      "id": "4028818484f483d20184f5006b97003f",
                      "includesOneTime": true,
                      "includesRecurring": true,
                      "includesUsage": true,
                      "invoiceDate": "2022-10-31",
                      "invoiceGroupNumber": "N-0001",
                      "invoiceNumber": "INV00000001",
                      "lastEmailSentDate": "2022-12-08 19:51:16",
                      "paymentAmount": 0,
                      "postedBy": "402881e522cf4f9b0122cf5d82860002",
                      "postedDate": "2022-12-09",
                      "refundAmount": 0,
                      "sequenceSetId": "402881e522cf4f9b0122cf5d82860009",
                      "soldToContactSnapshotId": "402881e522cf4f9b0122cf5d82860011",
                      "source": "BillRun",
                      "sourceId": "BR-00000001",
                      "sourceType": "Subscription",
                      "status": "Posted",
                      "success": true,
                      "targetDate": "2022-10-31",
                      "transferredToAccounting": "string",
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2022-12-08 19:51:23"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetInvoiceResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an invoice",
        "tags": [
          "Invoices"
        ]
      },
      "put": {
        "description": "Updates a specific invoice.\nThe following tutorials demonstrate how to use this operation:\n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_both_subscription_and_non-subscription_transactions/Unified_Invoicing/D_Add_and_delete_invoice_items_of_draft_standalone_invoices\"\n  target=\"_blank\">Add and delete invoice items of draft standalone invoices</a>\n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_both_subscription_and_non-subscription_transactions/Unified_Invoicing/Edit_due_dates_of_draft_standalone_invoices\"\n  target=\"_blank\">Edit due dates of draft standalone invoices</a>\n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Bill_for_both_subscription_and_non-subscription_transactions/Unified_Invoicing/Edit_invoice_item_prices_and_custom_fields_of_draft_standalone_invoices\"\n  target=\"_blank\">Edit invoice item prices and custom fields of draft standalone invoices</a>\n  \n",
        "operationId": "PUT_UpdateInvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutInvoiceType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad084db909fae930190a121c84957ff",
                      "number": "INV00000155",
                      "accountId": "8ad09be48db5aba7018db604776d4854",
                      "invoiceDate": "2024-07-30",
                      "currency": "USD",
                      "targetDate": null,
                      "dueDate": "2024-08-29",
                      "postedOn": null,
                      "postedById": null,
                      "status": "Draft",
                      "amount": 105,
                      "taxAmount": 0,
                      "totalTaxExemptAmount": 0,
                      "balance": 105,
                      "discount": 0,
                      "comment": null,
                      "autoPay": false,
                      "transferredToAccounting": false,
                      "creditBalanceAdjustmentAmount": 0,
                      "createdDate": "2024-07-11 02:31:04",
                      "createdById": "b243314d594646d3b2651aeedd4be47e",
                      "updatedDate": "2024-07-11 02:43:45",
                      "updatedById": "b243314d594646d3b2651aeedd4be47e",
                      "cancelledOn": null,
                      "cancelledById": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PutInvoiceResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an invoice",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/application-parts": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement)\nenabled. The Invoice Settlement feature is generally available as of Zuora Billing\nRelease 296 (March 2021). This feature includes Unapplied Payments, Credit and\nDebit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement,\nsee [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide)\nfor more information.\n\nIf you are in Zuora version 341, this operation will return only processed payments applied to the invoices. If you are in the Zuora version less than 341, this operation behavior remains the same and returns all payments associated with the invoice regardless of the payment status.\n\nRetrieves information about the payments or credit memos that are applied to a\nspecified invoice.\n",
        "operationId": "GET_InvoiceApplicationParts",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "applicationParts": [
                        {
                          "appliedAmount": 22,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2018-01-02 11:42:16",
                          "creditMemoId": "4028905f60a165a50160b4f632ff023d",
                          "paymentId": null,
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2018-01-02 11:42:16"
                        },
                        {
                          "appliedAmount": 11,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2018-01-02 11:41:38",
                          "creditMemoId": null,
                          "paymentId": "4028905f60a165a50160b4f5d5cb0229",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2018-01-02 11:41:38"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetInvoiceApplicationPartCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all application parts of an invoice",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/emails": {
      "post": {
        "description": "Sends a posted invoice to the specified email addresses manually.\n### Notes\n  - You must activate the **Manual Email For Invoice | Manual Email For Invoice** notification before emailing invoices. To include the invoice PDF in the email, select the **Include Invoice PDF** check box in the **Edit notification** dialog from the Zuora UI. See [Create and Edit Notifications](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/C_Create_Notifications#section_2) for more information.\n\n  - Zuora sends the email messages based on the email template you set. You can set the email template to use in the **Delivery Options** panel of the **Edit notification** dialog from the Zuora UI. By default, the **Invoice Posted Default Email Template** template is used. See [Create and Edit Email Templates](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/Create_Email_Templates) for more information.\n\n  - The invoices are sent only to the work email addresses or personal email addresses of the Bill To contact if the following conditions are all met:\n    * The `useEmailTemplateSetting` field is set to `false`.\n    * The email addresses are not specified in the `emailAddresses` field.\n",
        "operationId": "POST_EmailInvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostInvoiceEmailRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Email an invoice",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/files": {
      "get": {
        "description": "Retrieves the information about all PDF files of a specified invoice. \n\nInvoice PDF files are returned in reverse chronological order by the value of the `versionNumber` field.\n**Note**: This API only retrieves the PDF files that have been generated. If the latest PDF file is being generated, it will not be included in the response.\nYou can use the [Query](https://developer.zuora.com/api-references/api/operation/Action_POSTquery) action to get the latest PDF file, for example: `\"select Body from Invoice where Id = '2c93808457d787030157e0324aea5158'\"`.\nSee [Query an Invoice Body](https://knowledgecenter.zuora.com/Central_Platform/API/G_SOAP_API/E1_SOAP_API_Object_Reference/Invoice/Query_an_Invoice_Body_Field) for more information.\n",
        "operationId": "GET_InvoiceFiles",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "description": "The unique ID or number of an invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV00000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "invoiceFiles": [
                        {
                          "id": "2c98901f62d7d83d0162d7facec2262f",
                          "pdfFileUrl": "/v1/files/2c98901f62d7d83d0162d7facea6262d",
                          "versionNumber": 1524041954479
                        },
                        {
                          "id": "2c98901f62d7d83d0162d7f4a9792629",
                          "pdfFileUrl": "/v1/files/2c98901f62d7d83d0162d7f4a95c2627",
                          "versionNumber": 1524041551946
                        },
                        {
                          "id": "2c98901f62d7d83d0162d7f491ea2626",
                          "pdfFileUrl": "/v1/files/2c98901f62d7d83d0162d7f490f22624",
                          "versionNumber": 1524041544112
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETInvoiceFilesResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all files of an invoice",
        "tags": [
          "Invoices"
        ]
      },
      "post": {
        "description": "Uploads an externally generated invoice PDF file for an invoice that is in Draft or Posted status.\nTo use this operation, you must enable the Modify Invoice permission. See [Billing Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\nThis operation has the following restrictions:\n- Only the PDF file format is supported.\n- The maximum size of the PDF file to upload is 4 MB.\n- A maximum of 50 PDF files can be uploaded for one invoice.\n- Ensure that each uploaded PDF file has a unique name. Duplicate filenames are not allowed when attaching files to an invoice.\n",
        "operationId": "POST_UploadFileForInvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID or number of the invoice that you want to upload a PDF file for. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV00000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "The PDF file to upload for the invoice.\n",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "fileId": "40289f466463d683016463ef8b7301a2",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTUploadFileResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Upload a file for an invoice",
        "tags": [
          "Invoices"
        ],
        "x-code-samples": [
          {
            "label": "Curl",
            "lang": "curl",
            "source": "curl -X POST -H \"Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1\" -F \"file=@InvoiceFile.pdf\" \"https://rest.zuora.com/v1/invoices/2c92c8955bd63cc1015bd7c151af02ab/files\"\n"
          }
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/items": {
      "get": {
        "description": "Retrieves the information about all items of a specified invoice. \n",
        "operationId": "GET_InvoiceItems",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "description": "The unique ID or number of an invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV00000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "invoiceItems": [
                        {
                          "appliedToItemId": null,
                          "balance": 21.1,
                          "chargeAmount": 21.1,
                          "chargeDate": "2015-11-20 19:53:00",
                          "chargeDescription": "",
                          "chargeId": "2c92c0f9511f56b2015126814af832d2",
                          "chargeName": "Annual Fee",
                          "chargeType": "Recurring",
                          "description": "",
                          "commitmentId": "4028819f9a4dfdf1019a4e04acfb7e63",
                          "commitmentPeriodId": "4028819f9a4dfdf1019a4e06f04a402c",
                          "excludeItemBillingFromRevenueAccounting": true,
                          "id": "2c92c095511f5b4401512682dd017989",
                          "invoiceScheduleId": "402881e522cf4f9b0122cf5d82860005",
                          "invoiceScheduleItemId": "402881e522cf4f9b0122cf5d82860006",
                          "numberOfDeliveries": 1,
                          "processingType": "Charge",
                          "productName": "TeamCollab Enterprise",
                          "quantity": 1,
                          "serviceEndDate": "2015-11-30",
                          "serviceStartDate": "2015-11-20",
                          "soldToContactId": "2c92c0f9511f56b2015126814ad532cd",
                          "soldToContactSnapshotId": "2c92c0f9511f56b2015126814ad532cd",
                          "sourceItemType": "SubscriptionComponent",
                          "subscriptionId": "2c92c0f9511f56b2015126814ad532cc",
                          "subscriptionName": "A-S00000004",
                          "taxAmount": 0,
                          "taxationItems": {
                            "data": [
                              {
                                "balance": 2.11,
                                "creditAmount": 0,
                                "exemptAmount": 0,
                                "id": "2c98901a68ff26800168ffce6eeb0ffe",
                                "jurisdiction": "County",
                                "locationCode": "000-1",
                                "name": "taxName",
                                "paymentAmount": 0,
                                "taxAmount": 2.11,
                                "taxCode": "TAXCODE-1",
                                "taxCodeDescription": null,
                                "taxDate": "2015-11-20",
                                "taxRate": 0.1,
                                "taxRateDescription": "",
                                "taxRateType": "Percentage"
                              }
                            ]
                          },
                          "unitOfMeasure": "",
                          "unitPrice": 21.1
                        },
                        {
                          "appliedToItemId": "2c92c095511f5b4401512682dd017989",
                          "chargeAmount": -2.1,
                          "chargeDate": "2015-11-20 19:53:00",
                          "chargeDescription": "",
                          "chargeId": "1b3dede652fa47db833a83be55d850a5",
                          "chargeName": "Discount",
                          "chargeType": "OneTime",
                          "description": "",
                          "commitmentId": "4028819f9a4dfdf1019a4e04acfb7e63",
                          "commitmentPeriodId": "4028819f9a4dfdf1019a4e06f04a402c",
                          "excludeItemBillingFromRevenueAccounting": true,
                          "id": "3e28d61d442f433797e268e2b7c11eeb",
                          "invoiceScheduleId": "402881e522cf4f9b0122cf5d82860005",
                          "invoiceScheduleItemId": "402881e522cf4f9b0122cf5d82860006",
                          "numberOfDeliveries": 1,
                          "processingType": "Discount",
                          "productName": "TeamCollab Enterprise",
                          "quantity": 0,
                          "serviceEndDate": "2015-11-30",
                          "serviceStartDate": "2015-11-20",
                          "soldToContactId": "2c92c0f9511f56b2015126814ad532cd",
                          "soldToContactSnapshotId": "2c92c0f9511f56b2015126814ad532cd",
                          "sourceItemType": "SubscriptionComponent",
                          "subscriptionId": "c2d9a5768db440cbbf2709a55c614bed",
                          "subscriptionName": "A-S00000004",
                          "taxAmount": 0,
                          "taxationItems": {
                            "data": [
                              {
                                "balance": 0.21,
                                "creditAmount": 0,
                                "exemptAmount": 0,
                                "id": "2c98901a68ff26800168ffce6eeb0ffe",
                                "jurisdiction": "County",
                                "locationCode": "000-1",
                                "name": "taxName",
                                "paymentAmount": 0,
                                "taxAmount": 0.21,
                                "taxCode": "TAXCODE-1",
                                "taxCodeDescription": null,
                                "taxDate": "2015-11-20",
                                "taxRate": 0.1,
                                "taxRateDescription": "",
                                "taxRateType": "Percentage"
                              }
                            ]
                          },
                          "unitOfMeasure": "",
                          "unitPrice": 10
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETInvoiceItemsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all items of an invoice",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/items/{itemId}/taxation-items": {
      "get": {
        "description": "Retrieves information about the taxation items of a specific invoice item. \n",
        "operationId": "GET_TaxationItemsOfInvoiceItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "description": "The unique ID or number of an invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV00000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID of an invoice item. For example, 2c86c8955bd63cc1015bd7c151af02ef.\n",
            "in": "path",
            "name": "itemId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "data": [
                        {
                          "balance": 10,
                          "creditAmount": 0,
                          "exemptAmount": 0,
                          "id": "2c98901a68ff26800168ffce84e3102c",
                          "jurisdiction": "test",
                          "locationCode": "code - 001",
                          "name": "test",
                          "paymentAmount": 0,
                          "taxAmount": 10,
                          "taxCode": "taxcode",
                          "taxCodeDescription": "description",
                          "taxDate": "2019-02-18",
                          "taxRate": 2,
                          "taxRateDescription": "test",
                          "taxRateType": "FlatFee"
                        },
                        {
                          "balance": 10,
                          "creditAmount": 0,
                          "exemptAmount": 0,
                          "id": "2c98901a68ff26800168ffce85d6102e",
                          "jurisdiction": "test",
                          "locationCode": "code - 001",
                          "name": "test",
                          "paymentAmount": 0,
                          "taxAmount": 10,
                          "taxCode": "taxcode",
                          "taxCodeDescription": "description",
                          "taxDate": "2019-02-18",
                          "taxRate": 2,
                          "taxRateDescription": "test",
                          "taxRateType": "FlatFee"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETInvoiceTaxationItemsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.        \n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all taxation items of an invoice item",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/reverse": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nReverses a posted invoice. The reversal operation is performed asynchronously when the invoice contains more than 2,000 items in total. \n\n**Restrictions**\n\nYou are not allowed to reverse an invoice if any of the following restrictions is met:\n* Payments and credit memos are applied to the invoice.\n* The invoice is split.\n* The invoice is not in Posted status.\n* The total amount of the invoice is less than 0 (a negative invoice).\n* Using Tax Connector for Extension Platform to calculate taxes.\n* An invoice contains more than 50,000 items in total, including invoice items, discount items, and taxation items.\n\nSee [Invoice Reversal](https://knowledgecenter.zuora.com/CB_Billing/IA_Invoices/Reverse_Posted_Invoices) for more information.\n",
        "operationId": "PUT_ReverseInvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutReverseInvoiceType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "creditMemo": {
                        "id": "402890555a40ca7f015a5b099b0e307a"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PutReverseInvoiceResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Reverse an invoice",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/taxation-items": {
      "post": {
        "description": "Creates taxation items for an invoice.\n",
        "operationId": "POST_INV_TaxationItems",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of an invoice. For example, 8a8082e65b27f6c3015ba45ff82c7172 or INV00000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTTaxationItemList"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "taxationItems": [
                        {
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 10:08:43",
                          "exemptAmount": 0,
                          "financeInformation": {
                            "accountsReceivableAccountingCode": "Check",
                            "accountsReceivableAccountingCodeType": "Cash",
                            "salesTaxPayableAccountingCode": "Check",
                            "salesTaxPayableAccountingCodeType": "Cash"
                          },
                          "id": "402890555a7e9791015a87a072880062",
                          "invoiceItemId": "402890555a7e9791015a879f064d0055",
                          "jurisdiction": "CALIFORNIA",
                          "locationCode": "06",
                          "name": "STATE TAX",
                          "taxAmount": 0.1,
                          "taxCode": "ServiceTaxCode",
                          "taxCodeDescription": "This is tax code description!",
                          "taxDate": "2016-09-30",
                          "taxMode": "TaxExclusive",
                          "taxRate": 0.0625,
                          "taxRateDescription": "This is tax rate description!",
                          "taxRateType": "Percentage",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 10:08:43"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETTaxationItemListType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create taxation items for an invoice",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/write-off": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nWrites off a posted invoice. \n\nBy writing off an invoice, a credit memo is created and applied to the invoice. The generated credit memo items and credit memo taxation items are applied to invoice items and invoice taxation items based on the configured default application rule. If an invoice is written off, the balance of each invoice item and invoice taxation item must be zero.\n\nIf you set the **Create credit memos mirroring invoice items billing rule** to **Yes**, you can write off an invoice even if all its items have zero balance.\n\n**Restrictions**: You cannot write off an invoice if any of the following restrictions is met:\n* The balance of an invoice has been changed before Invoice Settlement is enabled.\n  For example, before Invoice Settlement is enabled, any credit balance adjustments, invoice item adjustments, or invoice adjustments have been applied to an invoice.\n* An invoice contains more than 2,000 items in total, including invoice items, discount items, and taxation items.\nSee [Invoice Write-off](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/IA_Invoices/Invoice_Write-Off) for more information.        \n",
        "operationId": "PUT_WriteOffInvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTWriteOffInvoiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "creditMemo": {
                        "id": "402890555a40ca7f015a5b099b0e307a"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTWriteOffInvoiceResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Write off an invoice",
        "tags": [
          "Invoices"
        ]
      }
    },
    "/v1/credit-memos": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about all credit memos. \n\nFor a use case of this operation, see [Get credit memo](https://developer.zuora.com/rest-api/general-concepts/authentication//#Get-credit-memo).\n\n\n### Filtering\n\nYou can use query parameters to restrict the data returned in the response. Each query parameter corresponds to one field in the response body.\n\nIf the value of a filterable field is string, you can set the corresponding query parameter to `null` when filtering. Then, you can get the response data with this field value being `null`. \n  \nExamples:\n\n- /v1/credit-memos?status=Posted\n\n- /v1/credit-memos?referredInvoiceId=null&status=Draft\n\n- /v1/credit-memos?status=Posted&type=External&sort=+number\n",
        "operationId": "GET_CreditMemos",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "This parameter filters the response based on the `accountId` field.\n",
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `accountNumber` field.\n",
            "in": "query",
            "name": "accountNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `amount` field. \n",
            "in": "query",
            "name": "amount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `appliedAmount` field. \n",
            "in": "query",
            "name": "appliedAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `autoApplyUponPosting` field. \n",
            "in": "query",
            "name": "autoApplyUponPosting",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdById` field. \n",
            "in": "query",
            "name": "createdById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdDate` field. \n",
            "in": "query",
            "name": "createdDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `creditMemoDate` field. \n",
            "in": "query",
            "name": "creditMemoDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `currency` field. \n",
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `excludeFromAutoApplyRules` field. \n",
            "in": "query",
            "name": "excludeFromAutoApplyRules",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "This parameter filters the response based on the `number` field. \n",
            "in": "query",
            "name": "number",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `referredInvoiceId` field. \n",
            "in": "query",
            "name": "referredInvoiceId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `refundAmount` field. \n",
            "in": "query",
            "name": "refundAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `sourceId` field. \n",
            "in": "query",
            "name": "sourceId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `status` field. \n",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "Draft",
                "Posted",
                "Canceled",
                "Error",
                "PendingForTax",
                "Generating",
                "CancelInProgress"
              ],
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `targetDate` field. \n",
            "in": "query",
            "name": "targetDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `taxAmount` field. \n",
            "in": "query",
            "name": "taxAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `totalTaxExemptAmount` field.\n",
            "in": "query",
            "name": "totalTaxExemptAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `transferredToAccounting` field. \n",
            "in": "query",
            "name": "transferredToAccounting",
            "required": false,
            "schema": {
              "enum": [
                "Processing",
                "Yes",
                "No",
                "Error",
                "Ignore"
              ],
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `unappliedAmount` field. \n",
            "in": "query",
            "name": "unappliedAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedById` field. \n",
            "in": "query",
            "name": "updatedById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedDate` field.\n",
            "in": "query",
            "name": "updatedDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter restricts the order of the data returned in the response. You can use this parameter to supply a dimension you want to sort on.\n\nA sortable field uses the following form: \n\n*operator* *field_name*\n\nYou can use at most two sortable fields in one URL path. Use a comma to separate sortable fields. For example:  *operator* *field_name*, *operator* *field_name*  \n\n*operator* is used to mark the order of sequencing. The operator is optional. If you only specify the sortable field without any operator, the response data is sorted in descending order by this field.\n\n  - The `-` operator indicates an ascending order.\n  - The `+` operator indicates a descending order.\n\nBy default, the response data is displayed in descending order by credit memo number.\n\n*field_name* indicates the name of a sortable field. The supported sortable fields of this operation are as below:\n\n  - accountId\n  - amount\n  - appliedAmount\n  - createdById\n  - createdDate\n  - creditMemoDate\n  - number\n  - referredInvoiceId\n  - refundAmount\n  - status\n  - targetDate\n  - taxAmount\n  - totalTaxExemptAmount\n  - transferredToAccounting\n  - unappliedAmount\n  - updatedDate\n\n\n  \nExamples:\n\n- /v1/credit-memos?sort=+number\n\n- /v1/credit-memos?status=Processed&sort=-number,+amount\n",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "creditmemos": [
                        {
                          "accountId": "2c92c8f95bd63b98015bd7ab09ef0926",
                          "accountNumber": "A00000001",
                          "amount": 23,
                          "appliedAmount": 0,
                          "autoApplyUponPosting": false,
                          "billToContactId": null,
                          "billToContactSnapshotId": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "comment": "",
                          "createdById": "2c92c8f95b79c9ad015b80614273052c",
                          "createdDate": "2017-05-05 01:39:30",
                          "creditMemoDate": "2017-05-05",
                          "currency": "USD",
                          "einvoiceErrorCode": null,
                          "einvoiceErrorMessage": null,
                          "einvoiceFileId": null,
                          "einvoiceStatus": "Processing",
                          "excludeFromAutoApplyRules": false,
                          "id": "2c92c8f95bd63b94015bd7c39289112e",
                          "invoiceGroupNumber": "N-0001",
                          "latestPDFFileId": "2c92c8955bd63b6c015bd7c395e90023",
                          "number": "CM00000002",
                          "postedById": null,
                          "postedOn": null,
                          "reasonCode": "Correcting invoice error",
                          "referredInvoiceId": null,
                          "refundAmount": 0,
                          "reversed": false,
                          "sequenceSetId": null,
                          "source": "BillRun",
                          "sourceId": "BR-00000024",
                          "sourceType": "Standalone",
                          "status": "Draft",
                          "targetDate": null,
                          "taxAmount": 0,
                          "taxMessage": null,
                          "taxStatus": "Complete",
                          "totalTaxExemptAmount": 0,
                          "transferredToAccounting": "No",
                          "unappliedAmount": 23,
                          "updatedById": "2c92c8f95b79c9ad015b80614273052c",
                          "updatedDate": "2017-05-05 01:39:30"
                        },
                        {
                          "accountId": "2c92c8f95bd63b98015bd7ab09ef0926",
                          "accountNumber": "A00000001",
                          "amount": 10,
                          "appliedAmount": 0,
                          "autoApplyUponPosting": false,
                          "billToContactId": null,
                          "billToContactSnapshotId": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "comment": "",
                          "createdById": "2c92c8f95b79c9ad015b80614273052c",
                          "createdDate": "2017-05-05 01:15:23",
                          "creditMemoDate": "2017-05-01",
                          "currency": "USD",
                          "einvoiceErrorCode": null,
                          "einvoiceErrorMessage": null,
                          "einvoiceFileId": null,
                          "einvoiceStatus": "Processing",
                          "excludeFromAutoApplyRules": false,
                          "id": "2c92c8f95bd63b9d015bd7ad7fe206f9",
                          "invoiceGroupNumber": "N-0001",
                          "latestPDFFileId": "2c92c8955bd63b6c015bd7ad8921001d",
                          "number": "CM00000001",
                          "postedById": null,
                          "postedOn": null,
                          "reasonCode": "Correcting invoice error",
                          "referredInvoiceId": "2c92c8955bd63cc1015bd7c151af02ab",
                          "refundAmount": 0,
                          "reversed": false,
                          "sequenceSetId": null,
                          "source": "AdhocFromInvoice",
                          "sourceId": null,
                          "sourceType": "Standalone",
                          "status": "Draft",
                          "targetDate": null,
                          "taxAmount": 0,
                          "taxMessage": null,
                          "taxStatus": "Complete",
                          "totalTaxExemptAmount": 0,
                          "transferredToAccounting": "No",
                          "unappliedAmount": 10,
                          "updatedById": "2c92c8f95b79c9ad015b80614273052c",
                          "updatedDate": "2017-05-05 01:15:24"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List credit memos",
        "tags": [
          "Credit Memos"
        ]
      },
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nCreates an ad-hoc credit memo from a product rate plan charge. Zuora supports the creation of credit memos from any type of product rate plan charge. The charges can also have any amount and any charge model, except for discout charge models. \n\nWhen credit memos are created from product rate plan charges, the specified amount with decimal places is now validated based on the decimal places supported by each currency.\n\nYou can create a credit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n",
        "operationId": "POST_CreditMemoFromPrpc",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreditMemoFromChargeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad08f0091698a7a01916e70df165b3b",
                      "number": "CM00000010",
                      "accountId": "8ad09be48db5aba7018db604776d4854",
                      "accountNumber": "A00000097",
                      "currency": "USD",
                      "creditMemoDate": "2024-08-19",
                      "targetDate": null,
                      "postedById": null,
                      "postedOn": null,
                      "status": "Draft",
                      "amount": 10,
                      "taxAmount": 0,
                      "totalTaxExemptAmount": 0,
                      "unappliedAmount": 10,
                      "refundAmount": 0,
                      "appliedAmount": 0,
                      "comment": null,
                      "source": "AdhocFromPrpc",
                      "sourceId": null,
                      "referredInvoiceId": null,
                      "reasonCode": "Correcting invoice error",
                      "createdDate": "2024-08-19 23:19:36",
                      "createdById": "b243314d594646d3b2651aeedd4be47e",
                      "updatedDate": "2024-08-19 23:19:36",
                      "updatedById": "b243314d594646d3b2651aeedd4be47e",
                      "cancelledOn": null,
                      "cancelledById": null,
                      "latestPDFFileId": "ac1ebc24569sd",
                      "transferredToAccounting": "No",
                      "excludeFromAutoApplyRules": false,
                      "autoApplyUponPosting": false,
                      "reversed": false,
                      "taxStatus": "Complete",
                      "sourceType": "Standalone",
                      "taxMessage": null,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "sequenceSetId": null,
                      "invoiceGroupNumber": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a credit memo from a charge",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/bulk": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nCreates multiple credit memos from invoices or product rate plan charges. You can create a maximum of 50 credit memos in one single request. \n\n- If you set the `sourceType` request field to `Invoice`, you can create multiple credit memos from invoices.\n- If you set the `sourceType` request field to `Standalone`, you can create multiple credit memos from product rate plan charges.\n\nThe credit memos that are created are each in separate database transactions. If the creation of one credit memo fails, other credit memos can still be created successfully. \n\nYou can create credit memos only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\nZero-amount memo items are supported in the following scenarios:\n- If you want to correct taxation items only for an invoice, you can set the memo item amount to zero, but the taxation item amount to non-zero.\n- If you want to correct personal data in an invoice, you can set the memo item amount to zero to create a zero-amount credit memo from an invoice.\n",
        "operationId": "POST_CreateCreditMemos",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTBulkCreditMemosRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "memos": [
                        {
                          "accountId": "ff8080817fe9d7b9017fe9e5234d04cb",
                          "accountNumber": "A00000001",
                          "amount": 100,
                          "appliedAmount": 0,
                          "autoApplyUponPosting": false,
                          "billToContactId": null,
                          "billToContactSnapshotId": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "comment": "test",
                          "createdById": "ff8080817fe9d7b9017fe9e41732030e",
                          "createdDate": "2022-04-02 18:49:47",
                          "creditMemoDate": "2022-04-02",
                          "currency": "USD",
                          "einvoiceErrorCode": null,
                          "einvoiceErrorMessage": null,
                          "einvoiceFileId": null,
                          "einvoiceStatus": "Processing",
                          "excludeFromAutoApplyRules": false,
                          "id": "ff8080817fe9d7b9017fe9e5382f04f5",
                          "invoiceGroupNumber": "N-0001",
                          "latestPDFFileId": "ac1ebc24569sd",
                          "number": "CM00000001",
                          "postedById": null,
                          "postedOn": null,
                          "reasonCode": "Correcting invoice error",
                          "referredInvoiceId": "ff8080817fe9d7b9017fe9e5317f04e0",
                          "refundAmount": 0,
                          "reversed": false,
                          "sequenceSetId": null,
                          "source": "AdhocFromInvoice",
                          "sourceId": null,
                          "sourceType": "Invoice",
                          "status": "Draft",
                          "success": true,
                          "targetDate": null,
                          "taxAmount": 0,
                          "taxMessage": null,
                          "taxStatus": "Complete",
                          "totalTaxExemptAmount": 0,
                          "transferredToAccounting": "No",
                          "unappliedAmount": 100,
                          "updatedById": "ff8080817fe9d7b9017fe9e41732030e",
                          "updatedDate": "2022-04-02 18:49:47"
                        },
                        {
                          "objectIndex": 1,
                          "processId": "0356073CB721291A",
                          "reasons": [
                            {
                              "code": 50000040,
                              "message": "Cannot find a Invoice instance with id test."
                            }
                          ],
                          "success": false
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/BulkCreditMemosResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create credit memos",
        "tags": [
          "Credit Memos"
        ]
      },
      "put": {
        "description": "**Notes:** \n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n- You can update credit memos only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\nUpdates the basic and finance information about multiple credit memos. You can update a maximum of 50 credit memos in one single request. \n\nCurrently, Zuora supports updating tax-exclusive memo items, but does not support updating tax-inclusive memo items. If the amount of a memo item is updated, the tax will be recalculated in the following conditions:\n- The memo is created from a product rate plan charge and you use Avalara to calculate the tax.\n- The memo is created from an invoice and you use Avalara or Zuora Tax to calculate the tax.\n\nThe <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Credit_memos_and_debit_memos/AC_Management_of_credit_and_debit_memos/Edit_credit_and_debit_memos#Edit_credit_memos_and_debit_memos_through_the_API/\" target=\"_blank\">Edit credit and debit memos</a> tutorial demonstrates how to use this operation to add and delete memo items.\n\nThe credit memos that are updated are each in separate database transactions. If the update of one credit memo fails, other credit memos can still be updated successfully.\n",
        "operationId": "PUT_UpdateCreditMemos",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTBulkCreditMemosRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "memos": [
                        {
                          "accountId": "ff8080817fe9d7b9017fe9e5234d04cb",
                          "accountNumber": "A00000001",
                          "amount": 100,
                          "appliedAmount": 0,
                          "autoApplyUponPosting": false,
                          "billToContactId": null,
                          "billToContactSnapshotId": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "comment": "test",
                          "createdById": "ff8080817fe9d7b9017fe9e41732030e",
                          "createdDate": "2022-04-02 18:49:47",
                          "creditMemoDate": "2022-04-02",
                          "currency": "USD",
                          "einvoiceErrorCode": null,
                          "einvoiceErrorMessage": null,
                          "einvoiceFileId": null,
                          "einvoiceStatus": "Processing",
                          "excludeFromAutoApplyRules": false,
                          "id": "ff8080817fe9d7b9017fe9e5382f04f5",
                          "invoiceGroupNumber": "N-0001",
                          "latestPDFFileId": "ac1ebc24569sd",
                          "number": "CM00000001",
                          "postedById": null,
                          "postedOn": null,
                          "reasonCode": "Correcting invoice error",
                          "referredInvoiceId": "ff8080817fe9d7b9017fe9e5317f04e0",
                          "refundAmount": 0,
                          "reversed": false,
                          "sequenceSetId": null,
                          "source": "AdhocFromInvoice",
                          "sourceId": null,
                          "sourceType": "Invoice",
                          "status": "Draft",
                          "success": true,
                          "targetDate": null,
                          "taxAmount": 0,
                          "taxMessage": null,
                          "taxStatus": "Complete",
                          "totalTaxExemptAmount": 0,
                          "transferredToAccounting": "No",
                          "unappliedAmount": 100,
                          "updatedById": "ff8080817fe9d7b9017fe9e41732030e",
                          "updatedDate": "2022-04-02 18:49:47"
                        },
                        {
                          "id": "ff8080817fe9d7b9017fe9e41732030f",
                          "objectIndex": 1,
                          "processId": "0356073CB721291A",
                          "reasons": [
                            {
                              "code": 50000040,
                              "message": "Cannot find a Invoice instance with id."
                            }
                          ],
                          "success": false
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/BulkCreditMemosResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update credit memos",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/pdf-status": {
      "get": {
        "description": "Retrieves the PDF generation statuses of a batch of credit memos.\n",
        "operationId": "Get_CreditMemoPdfStatus",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The IDs or numbers of the credit memos separated by commas. For example - `?creditMemoKeys=2c92c8955bd63cc1015bd7c151af02ab,4b65b8605bd63cc1015bd7c151af02cd,CM0000001`. A maximum of 50 keys can be entered in this field. ",
            "in": "query",
            "name": "creditMemoKeys",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "creditMemoFiles": [
                    {
                      "creditMemoId": "402824aa8cc894d5018cc8a120576881",
                      "creditMemoNumber": "CM00000003",
                      "pdfGenerationStatus": "Generated",
                      "createdOn": "2024-01-01 11:35:56",
                      "updatedOn": "2024-01-01 11:35:56",
                      "pdfFileUrl": "/v1/files/2c98901f62d7d83d0162d7facea6262d"
                    },
                    {
                      "creditMemoId": "2c98908a904dfc2601904e6e14090241",
                      "creditMemoNumber": "CM00000004",
                      "pdfGenerationStatus": "Error",
                      "createdOn": "2024-01-02 10:14:13",
                      "updatedOn": "2024-01-02 10:14:13",
                      "errorCode": "INVALID_TEMPLATE",
                      "errorMessage": "Unknown merge filed chargeNumber__c"
                    },
                    {
                      "creditMemoId": "514936bb7dd014e6230dd0c342798103",
                      "creditMemoNumber": "CM00000005",
                      "pdfGenerationStatus": "Pending",
                      "createdOn": "2024-01-01 11:35:56",
                      "updatedOn": "2024-01-01 11:35:56"
                    }
                  ],
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/GetCreditMemoPdfStatusBatchResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "processId",
                  "reasons": [
                    {
                      "code": "50000020",
                      "message": "Credit memo key is required"
                    }
                  ],
                  "success": false
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "message": "Authentication error"
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              },
              "WWW-Authenticate": {
                "description": "The value of this header is: ``` Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API ``` ",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve the PDF file generation status of credit memos",
        "tags": [
          "Credit Memos"
        ],
        "x-accepts": "application/json"
      }
    },
    "/v1/credit-memos/{creditMemoId}/items/{cmitemid}/taxation-items": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nRetrieves information about the taxation items of a specific credit memo item. \n",
        "operationId": "GET_TaxationItemsOfCreditMemoItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "description": "The unique ID of a credit memo item. You can get the credit memo item ID from the response of [List credit memo items](https://developer.zuora.com/api-references/api/operation/GET_CreditMemoItems).\n",
            "in": "path",
            "name": "cmitemid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n",
            "in": "path",
            "name": "creditMemoId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "data": [
                        {
                          "appliedAmount": 0,
                          "exemptAmount": 10,
                          "financeInformation": {
                            "onAccountAccountingCode": "Check",
                            "onAccountAccountingCodeType": "Cash",
                            "salesTaxPayableAccountingCode": "Check",
                            "salesTaxPayableAccountingCodeType": "Cash"
                          },
                          "id": "2c98901a68ff2680016903216a271a67",
                          "jurisdiction": "Jurisdiction",
                          "locationCode": "8",
                          "name": "taxName_0",
                          "refundAmount": 0,
                          "sourceTaxItemId": null,
                          "taxAmount": 10,
                          "taxCode": "taxCode",
                          "taxCodeDescription": "taxCodeDescription",
                          "taxDate": "2016-10-10",
                          "taxRate": 0.1,
                          "taxRateDescription": "taxRateDescription",
                          "taxRateType": "Percentage",
                          "unappliedAmount": 10
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETTaxationItemsOfCreditMemoItemType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.        \n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all taxation items of a credit memo item",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoId}/write-off": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nWrite off a fully unapplied credit memo. When writing off a credit memo, a debit memo is automatically created, and then the credit memo to be written off is fully applied to the debit memo.\n\nNote that this operation only supports writing off credit memos that are fully unapplied. Credit memos that are not fully unapplied cannot be written off by this operation. \n",
        "operationId": "PUT_WriteOffCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n",
            "in": "path",
            "name": "creditMemoId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTCreditMemoWriteOff"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "debitMemo": {
                        "id": "4028905f5a87c0ff015a87e49e6b0062"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTCreditMemoWriteOffResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Write off a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}": {
      "delete": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nDeletes a credit memo. Only credit memos with the Cancelled status can be deleted. \n\nYou can delete a credit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n",
        "operationId": "DELETE_CreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a credit memo",
        "tags": [
          "Credit Memos"
        ]
      },
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about a specific credit memo.\n\nFor a use case of this operation, see [Get credit memo](https://developer.zuora.com/rest-api/general-concepts/authentication//#Get-credit-memo).\n",
        "operationId": "GET_CreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "402890555a7e9791015a7f15fe44001c",
                      "accountNumber": "A00000001",
                      "amount": 3.1,
                      "appliedAmount": 0,
                      "autoApplyUponPosting": false,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "cancelledById": null,
                      "cancelledOn": null,
                      "comment": "",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 10:07:10",
                      "creditMemoDate": "2017-03-01",
                      "currency": "USD",
                      "einvoiceErrorCode": null,
                      "einvoiceErrorMessage": null,
                      "einvoiceFileId": null,
                      "einvoiceStatus": "Processing",
                      "excludeFromAutoApplyRules": false,
                      "id": "402890555a7e9791015a879f064a0054",
                      "invoiceGroupNumber": "N-0001",
                      "latestPDFFileId": "402890555a7e9791015a879f07fb005e",
                      "number": "CM00000012",
                      "postedById": null,
                      "postedOn": null,
                      "reasonCode": "Correcting invoice error",
                      "referredInvoiceId": "402890555a7e9791015a7f1756aa0035",
                      "refundAmount": 0,
                      "reversed": false,
                      "sequenceSetId": null,
                      "source": "API",
                      "sourceId": null,
                      "sourceType": "Standalone",
                      "status": "Draft",
                      "success": true,
                      "targetDate": null,
                      "taxAmount": 0.1,
                      "taxMessage": null,
                      "taxStatus": "Complete",
                      "totalTaxExemptAmount": 0,
                      "transferredToAccounting": "No",
                      "unappliedAmount": 3.1,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 10:08:43"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a credit memo",
        "tags": [
          "Credit Memos"
        ]
      },
      "put": {
        "description": "**Notes:** \n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n- You can update a credit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\nUpdates the basic and finance information about a credit memo. \n\nCurrently, Zuora supports updating tax-exclusive memo items, but does not support updating tax-inclusive memo items. If the amount of a memo item is updated, the tax will be recalculated in the following conditions:\n- The memo is created from a product rate plan charge and you use Avalara to calculate the tax.\n- The memo is created from an invoice and you use Avalara or Zuora Tax to calculate the tax.\n\nThe [Edit credit and debit memos](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Credit_memos_and_debit_memos/AC_Management_of_credit_and_debit_memos/Edit_credit_and_debit_memos#Edit_credit_memos_and_debit_memos_through_the_API) tutorial demonstrates how to use this operation to add and delete memo items.\n",
        "operationId": "PUT_UpdateCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTCreditMemoType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad081dd91698b2801916e637b19583f",
                      "number": "CM00000008",
                      "accountId": "8ad09be48db5aba7018db604776d4854",
                      "accountNumber": "A00000097",
                      "currency": "USD",
                      "creditMemoDate": "2024-08-19",
                      "targetDate": null,
                      "postedById": null,
                      "postedOn": null,
                      "status": "Draft",
                      "amount": 14.99,
                      "taxAmount": 0,
                      "totalTaxExemptAmount": 0,
                      "unappliedAmount": 14.99,
                      "refundAmount": 0,
                      "appliedAmount": 0,
                      "comment": "Details about this Credit Memo",
                      "source": "AdhocFromPrpc",
                      "sourceId": null,
                      "referredInvoiceId": null,
                      "reasonCode": "Ad hoc credit",
                      "createdDate": "2024-08-19 23:04:59",
                      "createdById": "8ad09fc28193c189018194da28be74ba",
                      "updatedDate": "2024-08-19 23:05:55",
                      "updatedById": "b243314d594646d3b2651aeedd4be47e",
                      "cancelledOn": null,
                      "cancelledById": null,
                      "latestPDFFileId": "ac1ebc24569sd",
                      "transferredToAccounting": "No",
                      "excludeFromAutoApplyRules": true,
                      "autoApplyUponPosting": false,
                      "reversed": false,
                      "taxStatus": "Complete",
                      "sourceType": "Standalone",
                      "taxMessage": null,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "sequenceSetId": null,
                      "invoiceGroupNumber": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/apply": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nApplies a posted credit memo to one or more invoices and debit memos. \n\nYou can apply a credit memo to an invoice or a debit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\nWhen you apply a credit memo, the total number of credit memo items and the items that credit memo items to be applied to must be less than or equal to 15,000.\n\nIf the limit is hit, you can follow the following instructions:\n\n- If you want to apply one credit memo to multiple invoices or debit memos, decrease the number of invoices or debit memos in the request.\n- If you want to apply one credit memo to a single invoice or debit memo with a large volume of items, you have to specify invoice items or debit memo items in the request. The maximum number of invoice items or debit memo items that you can specify in the request is 1,000.\n- If a credit memo has a large volume of items, you have to specify credit memo items in the request. The maximum number of credit memo items that you can specify in the request is 1,000.\n        \nIf the Proration application rule is used, when applying credit memos, the following quantity must be less than or equal to 10,000: \n\n(number of invoice items + number of debit memo items) * number of credit memo items\n\nOtherwise, the First In First Out rule will be used instead of the Proration rule.\n",
        "operationId": "PUT_ApplyCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyCreditMemoType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad081dd91698b2801916e5a84b65653",
                      "number": "CM00000007",
                      "accountId": "8ad09be48db5aba7018db604776d4854",
                      "accountNumber": "A00000097",
                      "currency": "USD",
                      "creditMemoDate": "2024-08-19",
                      "targetDate": null,
                      "postedById": "8ad09fc28193c189018194da28be74ba",
                      "postedOn": "2024-08-19 22:55:11",
                      "status": "Posted",
                      "amount": 14.99,
                      "taxAmount": 0,
                      "totalTaxExemptAmount": 0,
                      "unappliedAmount": 3.99,
                      "refundAmount": 0,
                      "appliedAmount": 11,
                      "comment": "",
                      "source": "AdhocFromPrpc",
                      "sourceId": null,
                      "referredInvoiceId": null,
                      "reasonCode": "Ad hoc credit",
                      "createdDate": "2024-08-19 22:55:11",
                      "createdById": "8ad09fc28193c189018194da28be74ba",
                      "updatedDate": "2024-08-19 22:59:54",
                      "updatedById": "b243314d594646d3b2651aeedd4be47e",
                      "cancelledOn": null,
                      "cancelledById": null,
                      "latestPDFFileId": "ac1ebc24569sd",
                      "transferredToAccounting": "No",
                      "excludeFromAutoApplyRules": true,
                      "autoApplyUponPosting": false,
                      "reversed": false,
                      "taxStatus": "Complete",
                      "sourceType": "Standalone",
                      "taxMessage": null,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "sequenceSetId": null,
                      "invoiceGroupNumber": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Apply a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/cancel": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nCancels a credit memo. Only credit memos with the Draft status can be cancelled. \n\nYou can cancel a credit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n",
        "operationId": "PUT_CancelCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "402890555a7e9791015a7f15fe44001c",
                      "accountNumber": "A00000001",
                      "amount": 2020,
                      "appliedAmount": 0,
                      "autoApplyUponPosting": false,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "cancelledById": "402881e522cf4f9b0122cf5d82860002",
                      "cancelledOn": "2017-09-03 19:59:07",
                      "comment": "the comment",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 15:31:10",
                      "creditMemoDate": "2017-10-17",
                      "currency": "USD",
                      "einvoiceErrorCode": null,
                      "einvoiceErrorMessage": null,
                      "einvoiceFileId": null,
                      "einvoiceStatus": "Processing",
                      "excludeFromAutoApplyRules": false,
                      "id": "402890555a87d7f5015a88c7a6830022",
                      "invoiceGroupNumber": "N-0001",
                      "latestPDFFileId": "402890555a87d7f5015a88c7a7a2002a",
                      "number": "CM00000015",
                      "postedById": null,
                      "postedOn": null,
                      "reasonCode": "Correcting invoice error",
                      "referredInvoiceId": null,
                      "refundAmount": 0,
                      "reversed": false,
                      "sequenceSetId": null,
                      "source": "AdhocFromPrpc",
                      "sourceId": null,
                      "sourceType": "Standalone",
                      "status": "Canceled",
                      "success": true,
                      "targetDate": null,
                      "taxAmount": 0,
                      "taxMessage": null,
                      "taxStatus": "Complete",
                      "totalTaxExemptAmount": 0,
                      "transferredToAccounting": "No",
                      "unappliedAmount": 2020,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 15:36:57"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/emails": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nSends a posted credit memo to the specified email addresses manually.\n\n\n\n### Notes\n  - You must activate the **Email Credit Memo | Manually email Credit Memo** notification before emailing credit memos. To include the credit memo PDF in the email, select the **Include Credit Memo PDF** check box in the **Edit notification** dialog from the Zuora UI. See [Create and Edit Notifications](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/C_Create_Notifications#section_2) for more information.\n\n\n  - Zuora sends the email messages based on the email template you set. You can set the email template to use in the **Delivery Options** panel of the **Edit notification** dialog from the Zuora UI. By default, the **Manual Email for Credit Memo Default Template** template is used. See [Create and Edit Email Templates](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/Create_Email_Templates) for more information.\n\n\n  - The credit memos are sent only to the work email addresses or personal email addresses of the Bill To contact if the following conditions are all met:\n\n    * The `useEmailTemplateSetting` field is set to `false`.\n    * The email addresses are not specified in the `emailAddresses` field.\n",
        "operationId": "POST_EmailCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of a posted credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostCreditMemoEmailRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Email a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/files": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nUploads an externally generated PDF file for a credit memo that is in Draft or Posted status.\n\nTo use this operation, you must enable the Modify Modify Credit Memo permission. See [Billing Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\nThis operation has the following restrictions:\n- Only the PDF file format is supported.\n- The maximum size of the PDF file to upload is 4 MB.\n- A maximum of 50 PDF files can be uploaded for one credit memo.\n",
        "operationId": "POST_UploadFileForCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID or number of the credit memo that you want to upload a PDF file for. For example, 402890555a7e9791015a879f064a0054 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "The PDF file to upload for the credit memo.\n",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "fileId": "40289f466463d683016463ef8b7301a4",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTUploadFileResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Upload a file for a credit memo",
        "tags": [
          "Credit Memos"
        ],
        "x-code-samples": [
          {
            "label": "Curl",
            "lang": "curl",
            "source": "curl -X POST -H \"Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1\" -F \"file=@CreditMemoFile.pdf\" \"https://rest.zuora.com/v1/credit-memos/402890555a7e9791015a879f064a0054/files\"\n"
          }
        ]
      },
      "get": {
        "description": "Retrieves the information about all PDF files of a specified credit memo. \n\nCredit Memo PDF files are returned in reverse chronological order by the value of the `versionNumber` field.\n**Note**: This API only retrieves the PDF files that have been generated. If the latest PDF file is being generated, it will not be included in the response.\n",
        "operationId": "GET_CreditMemoFiles",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "description": "The unique ID or number of an credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "creditMemoFiles": [
                        {
                          "id": "8a90a24f8e128020018e12cf610f03f9",
                          "pdfFileUrl": "/v1/files/8a90a24f8e128020018e12cf610903f8",
                          "versionNumber": 1709712563443
                        },
                        {
                          "id": "8a90b5148c6d127b018c6d1e3c6e022e",
                          "pdfFileUrl": "/v1/files/8a90b5148c6d127b018c6d1e3c68022d",
                          "versionNumber": 1702637739555
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoFilesResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all files of a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/items": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about all items of a credit memo. A credit memo item is a single line item in a credit memo. \n\n### Filtering\n\nYou can use query parameters to restrict the data returned in the response. Each query parameter corresponds to one field in the response body.\n\nIf the value of a filterable field is string, you can set the corresponding query parameter to `null` when filtering. Then, you can get the response data with this field value being `null`. \n\nExamples:\n    \n  - /v1/credit-memos/402890245c7ca371015c7cb40ac30015/items?amount=100\n  \n  - /v1/credit-memos/402890245c7ca371015c7cb40ac30015/items?amount=100&sort=createdDate\n    \n",
        "operationId": "GET_CreditMemoItems",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "This parameter filters the response based on the `amount` field. \n",
            "in": "query",
            "name": "amount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `appliedAmount` field.\n",
            "in": "query",
            "name": "appliedAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdById` field. \n",
            "in": "query",
            "name": "createdById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdDate` field. \n",
            "in": "query",
            "name": "createdDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `id` field. \n",
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `refundAmount` field. \n",
            "in": "query",
            "name": "refundAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `serviceEndDate` field. \n",
            "in": "query",
            "name": "serviceEndDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `serviceStartDate` field. \n",
            "in": "query",
            "name": "serviceStartDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `sku` field. \n",
            "in": "query",
            "name": "sku",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `skuName` field. \n",
            "in": "query",
            "name": "skuName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `sourceItemId` field. \n",
            "in": "query",
            "name": "sourceItemId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `subscriptionId` field.\n",
            "in": "query",
            "name": "subscriptionId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedById` field. \n",
            "in": "query",
            "name": "updatedById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedDate` field.\n",
            "in": "query",
            "name": "updatedDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter restricts the order of the data returned in the response. You can use this parameter to supply a dimension you want to sort on.\n\nA sortable field uses the following form: \n\n*operator* *field_name*\n\nYou can use at most two sortable fields in one URL path. Use a comma to separate sortable fields. For example:  *operator* *field_name*, *operator* *field_name*  \n\n*operator* is used to mark the order of sequencing. The operator is optional. If you only specify the sortable field without any operator, the response data is sorted in descending order by this field.\n\n  - The `-` operator indicates an ascending order.\n  - The `+` operator indicates a descending order.\n\nBy default, the response data is displayed in descending order by updated date.\n\n*field_name* indicates the name of a sortable field. The supported sortable fields of this operation are as below:\n\n  - amount\n  - appliedAmount\n  - createdById\n  - createdDate\n  - id\n  - refundAmount\n  - serviceEndDate\n  - serviceStartDate\n  - sku\n  - skuName\n  - sourceItemId\n  - subscriptionId\n  - updatedById\n  - updatedDate\n\n  \nExamples:\n\n- /v1/credit-memos/402890245c7ca371015c7cb40ac30015/items?sort=createdDate\n\n- /v1/credit-memos/402890245c7ca371015c7cb40ac30015/items?amount=100&sort=createdDate\n",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "items": [
                        {
                          "amount": 1,
                          "amountWithoutTax": 0,
                          "appliedAmount": 0,
                          "appliedToItemId": null,
                          "comment": "",
                          "commitmentId": "4028819f9a4dfdf1019a4e04acfb7e63",
                          "commitmentPeriodId": "4028819f9a4dfdf1019a4e06f04a402c",
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 10:07:10",
                          "creditFromItemId": "402880e97a56f30b017a574012e50085",
                          "creditFromItemSource": "CreditMemoItem",
                          "excludeItemBillingFromRevenueAccounting": true,
                          "financeInformation": {
                            "deferredRevenueAccountingCode": null,
                            "deferredRevenueAccountingCodeType": null,
                            "onAccountAccountingCode": null,
                            "onAccountAccountingCodeType": null,
                            "recognizedRevenueAccountingCode": null,
                            "recognizedRevenueAccountingCodeType": null
                          },
                          "id": "402890555a7e9791015a879f064d0055",
                          "invoiceScheduleId": "402881e522cf4f9b0122cf5d82860005",
                          "invoiceScheduleItemId": "402881e522cf4f9b0122cf5d82860006",
                          "numberOfDeliveries": 1,
                          "processingType": "Charge",
                          "quantity": 1,
                          "refundAmount": 0,
                          "serviceEndDate": "2017-03-26",
                          "serviceStartDate": "2017-02-27",
                          "sku": "SKU-00000001",
                          "skuName": "New Component",
                          "soldToContactId": "402881e522cf4f9b0122cf5d82860003",
                          "soldToContactSnapshotId": "402881e522cf4f9b0122cf5d82860004",
                          "sourceItemId": "402890555a7e9791015a7f1756bc0037",
                          "sourceItemType": "InvoiceDetail",
                          "subscriptionId": "402890d25bec1155015bec35cc7c0bc7",
                          "taxMode": "TaxExclusive",
                          "taxationItems": {
                            "data": [
                              {
                                "appliedAmount": 0,
                                "exemptAmount": 0,
                                "financeInformation": {
                                  "onAccountAccountingCode": "Check",
                                  "onAccountAccountingCodeType": "Cash",
                                  "salesTaxPayableAccountingCode": "Check",
                                  "salesTaxPayableAccountingCodeType": "Cash"
                                },
                                "id": "402890555a7e9791015a87a072880062",
                                "jurisdiction": "CALIFORNIA",
                                "locationCode": "06",
                                "name": "STATE TAX",
                                "refundAmount": 0,
                                "sourceTaxItemId": null,
                                "taxAmount": 0.1,
                                "taxCode": "ServiceTaxCode",
                                "taxCodeDescription": "This is tax code description!",
                                "taxDate": "2016-09-30",
                                "taxRate": 0.0625,
                                "taxRateDescription": "This is tax rate description!",
                                "taxRateType": "Percentage",
                                "unappliedAmount": 0.1
                              }
                            ]
                          },
                          "unappliedAmount": 1,
                          "unitOfMeasure": "Each",
                          "unitPrice": 1,
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 10:08:43"
                        },
                        {
                          "amount": 2,
                          "amountWithoutTax": 2,
                          "appliedAmount": 0,
                          "appliedToItemId": null,
                          "comment": "",
                          "commitmentId": "4028819f9a4dfdf1019a4e04acfb7e63",
                          "commitmentPeriodId": "4028819f9a4dfdf1019a4e06f04a402c",
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 10:07:10",
                          "creditFromItemId": "402880e97a56f30b017a574012f00086",
                          "creditFromItemSource": "CreditMemoItem",
                          "excludeItemBillingFromRevenueAccounting": true,
                          "financeInformation": {
                            "deferredRevenueAccountingCode": null,
                            "deferredRevenueAccountingCodeType": null,
                            "onAccountAccountingCode": null,
                            "onAccountAccountingCodeType": null,
                            "recognizedRevenueAccountingCode": null,
                            "recognizedRevenueAccountingCodeType": null
                          },
                          "id": "402890555a7e9791015a879f06610056",
                          "invoiceScheduleId": "402881e522cf4f9b0122cf5d82860005",
                          "invoiceScheduleItemId": "402881e522cf4f9b0122cf5d82860006",
                          "numberOfDeliveries": 1,
                          "processingType": "Charge",
                          "quantity": 1,
                          "refundAmount": 0,
                          "serviceEndDate": "2017-03-26",
                          "serviceStartDate": "2017-02-27",
                          "sku": "SKU-00000001",
                          "skuName": "New Component",
                          "soldToContactId": "402881e522cf4f9b0122cf5d82860003",
                          "soldToContactSnapshotId": "402881e522cf4f9b0122cf5d82860004",
                          "sourceItemId": "402890555a7e9791015a7f1756bd0038",
                          "sourceItemType": "InvoiceDetail",
                          "subscriptionId": "402890d25bec1155015bec35cc7c0bc7",
                          "taxMode": "TaxExclusive",
                          "taxationItems": {
                            "data": []
                          },
                          "unappliedAmount": 2,
                          "unitOfMeasure": "Each",
                          "unitPrice": 2,
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 10:07:10"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoItemsListType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List credit memo items",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/items/{cmitemid}": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nRetrieves the information about a specific item of a credit memo. A credit memo item is a single line item in a credit memo.\n",
        "operationId": "GET_CreditMemoItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a credit memo item. You can get the credit memo item ID from the response of [List credit memo items](https://developer.zuora.com/api-references/api/operation/GET_CreditMemoItems).\n",
            "in": "path",
            "name": "cmitemid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amount": 1,
                      "amountWithoutTax": 1,
                      "appliedAmount": 0,
                      "appliedToItemId": null,
                      "comment": "",
                      "commitmentId": "4028819f9a4dfdf1019a4e04acfb7e63",
                      "commitmentPeriodId": "4028819f9a4dfdf1019a4e06f04a402c",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 10:07:10",
                      "creditFromItemId": "402880e97a56f30b017a574012f00086",
                      "creditFromItemSource": "CreditMemoItem",
                      "excludeItemBillingFromRevenueAccounting": true,
                      "financeInformation": {
                        "deferredRevenueAccountingCode": "Check",
                        "deferredRevenueAccountingCodeType": null,
                        "onAccountAccountingCode": null,
                        "onAccountAccountingCodeType": null,
                        "recognizedRevenueAccountingCode": null,
                        "recognizedRevenueAccountingCodeType": null
                      },
                      "id": "402890555a7e9791015a879f064d0055",
                      "invoiceScheduleId": "402881e522cf4f9b0122cf5d82860005",
                      "invoiceScheduleItemId": "402881e522cf4f9b0122cf5d82860006",
                      "numberOfDeliveries": 1,
                      "processingType": "Charge",
                      "quantity": 1,
                      "refundAmount": 0,
                      "serviceEndDate": "2017-03-26",
                      "serviceStartDate": "2017-02-27",
                      "sku": "SKU-00000001",
                      "skuName": "New Component",
                      "soldToContactId": "402881e522cf4f9b0122cf5d82860003",
                      "soldToContactSnapshotId": "402881e522cf4f9b0122cf5d82860004",
                      "sourceItemId": "402890555a7e9791015a7f1756bc0037",
                      "sourceItemType": "InvoiceDetail",
                      "subscriptionId": "402890d25bec1155015bec35cc7c0bc7",
                      "success": true,
                      "taxMode": "TaxExclusive",
                      "taxationItems": {
                        "data": []
                      },
                      "unappliedAmount": 1,
                      "unitOfMeasure": "Each",
                      "unitPrice": 1,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 10:08:43"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoItemType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a credit memo item",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/parts": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about all parts of a credit memo. A credit memo can consist of an unapplied part, and several parts applied to invoices and debit memos. You can use this operation to get all the applied and unapplied portions of a credit memo. Note that a fully refunded credit memo does not contain any credit memo part.\n",
        "operationId": "GET_CreditMemoParts",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "parts": [
                        {
                          "amount": 3.66,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-02 13:21:55",
                          "debitMemoId": null,
                          "id": "4028905f5a890526015a8d77adea0029",
                          "invoiceId": null,
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-02 13:21:55"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoPartsCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all parts of a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/parts/{partid}": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about a specific credit memo part. A credit memo can consist of an unapplied part, and several parts applied to invoices and debit memos.\n\nA fully refunded credit memo does not contain any credit memo part.\n",
        "operationId": "GET_CreditMemoPart",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a specific credit memo part. You can get the credit memo part ID from the response of [List all parts of a credit memo](https://developer.zuora.com/api-references/api/operation/GET_CreditMemoParts).\n",
            "in": "path",
            "name": "partid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amount": 1,
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-02 14:00:21",
                      "debitMemoId": null,
                      "id": "4028905f5a890526015a8d9adeb30059",
                      "invoiceId": "4028905f5a87c0ff015a87d3f8f10043",
                      "success": true,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-02 14:00:21"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoPartType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a credit memo part",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/pdfs": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nCreates a PDF file for a specified credit memo. To access the generated PDF file, you can download it by clicking **View PDF** on the detailed credit memo page through the Zuora UI.\n\nThis REST API operation can be used only if you have the billing document file generation feature and the Billing user permission \"Regenerate PDF\" enabled.\n",
        "operationId": "POST_CreditMemoPDF",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the credit memo that you want to create a PDF file for. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTMemoPdfResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Generate a credit memo PDF file",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/post": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nPosts a credit memo to activate it. You can post credit memos only if you have the [Billing permissions](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles#Billing_Permissions).\n",
        "operationId": "PUT_PostCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "402890555a7e9791015a7f15fe44001c",
                      "accountNumber": "A00000001",
                      "amount": 3.1,
                      "appliedAmount": 0,
                      "autoApplyUponPosting": false,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "cancelledById": null,
                      "cancelledOn": null,
                      "comment": "",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 10:07:10",
                      "creditMemoDate": "2017-03-01",
                      "currency": "USD",
                      "einvoiceErrorCode": null,
                      "einvoiceErrorMessage": null,
                      "einvoiceFileId": null,
                      "einvoiceStatus": "Processing",
                      "excludeFromAutoApplyRules": false,
                      "id": "402890555a7e9791015a879f064a0054",
                      "invoiceGroupNumber": "N-0001",
                      "latestPDFFileId": "ac1ebc24569sd",
                      "number": "CM00000012",
                      "postedById": "402881e522cf4f9b0122cf5d82860002",
                      "postedOn": "2017-03-01 14:28:06",
                      "reasonCode": "Correcting invoice error",
                      "referredInvoiceId": "402890555a7e9791015a7f1756aa0035",
                      "refundAmount": 0,
                      "reversed": false,
                      "sequenceSetId": null,
                      "source": "API",
                      "sourceId": null,
                      "sourceType": "Standalone",
                      "status": "Posted",
                      "success": true,
                      "targetDate": null,
                      "taxAmount": 0.1,
                      "taxMessage": null,
                      "taxStatus": "Complete",
                      "totalTaxExemptAmount": 0,
                      "transferredToAccounting": "No",
                      "unappliedAmount": 3.1,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 14:28:06"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Post a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/refund": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRefunds a full or partial posted credit memo to your customers. Only the amount of unapplied part could be refunded. \n\nYou can refund a credit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\nWhen you refund a credit memo, the total number of credit memo items to be refunded must be less than or equal to 15,000.\n\nFor a use case of this operation, see [Refund processing](https://developer.zuora.com/rest-api/general-concepts/authentication//#Refund-processing).\n",
        "operationId": "POST_RefundCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the credit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostNonRefRefundType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad0937890e7fca00190e8c290d46fad",
                      "number": "R-00000001",
                      "status": "Processed",
                      "type": "Electronic",
                      "methodType": "CreditCard",
                      "accountId": "8ad09be48db5aba7018db604776d4854",
                      "amount": 10,
                      "refundDate": "2024-07-25",
                      "comment": null,
                      "paymentMethodId": "8ad084db90a5e73b0190c02783f552fa",
                      "paymentMethodSnapshotId": "8ad0937890e7fca00190e8c290b86fab",
                      "paymentId": null,
                      "paymentNumber": null,
                      "creditMemoId": "8ad0835290c4bb2f0190d9955e414e62",
                      "reasonCode": null,
                      "gatewayId": "2c92c0f972bc6aa90172bc77ccaf379a",
                      "paymentGatewayNumber": null,
                      "gatewayResponse": "This transaction has been approved by Test gateway.",
                      "gatewayResponseCode": "approve",
                      "gatewayState": "Submitted",
                      "markedForSubmissionOn": null,
                      "referenceId": "70028533",
                      "secondRefundReferenceId": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "submittedOn": "2024-07-25 00:19:43",
                      "settledOn": null,
                      "cancelledOn": null,
                      "createdDate": "2024-07-25 00:19:43",
                      "createdById": "b243314d594646d3b2651aeedd4be47e",
                      "updatedDate": "2024-07-25 00:19:43",
                      "updatedById": "b243314d594646d3b2651aeedd4be47e",
                      "refundTransactionTime": "2024-07-25 00:19:43",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "unappliedPaymentAccountingCode": "Accounts Receivable",
                        "unappliedPaymentAccountingCodeType": "AccountsReceivable",
                        "transferredToAccounting": "No"
                      },
                      "gatewayReconciliationStatus": null,
                      "gatewayReconciliationReason": null,
                      "payoutId": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRefundCreditMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Refund a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/reverse": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nReverses a posted credit memo. See [Reverse credit memos](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/B_Credit_and_Debit_Memos/C_Management_of_Credit_and_Debit_Memos/Reverse_credit_memos) for more information.\n\nYou can reverse a credit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\n**Restrictions**\n\nYou cannot reverse credit memos if any of the following conditions is met:\n\n* A credit memo's applied amount is not 0.\n* A credit memo is not in Posted status.\n* A credit memo contains more than 2,000 items in total, including credit memo items, discount items, and taxation items.\n",
        "operationId": "PUT_ReverseCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the credit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutReverseCreditMemoType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "debitMemo": {
                        "id": "402890555a40ca7f015a5b099b0e307a"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PutReverseCreditMemoResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Reverse a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/taxation-items": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nCreates taxation items for a credit memo.\n",
        "operationId": "POST_CM_TaxationItems",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTTaxationItemListForCMType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "taxationItems": [
                        {
                          "createdById": "8ad084a67f9c7138017fab8a8b511b5a",
                          "createdDate": "2024-11-15 14:41:04",
                          "exemptAmount": 0,
                          "id": "8ad0980c932a209d01932e8dcbf83bc8",
                          "memoItemId": "8ad086fa932a0b5401932e82ab1f1fb3",
                          "invoiceItemId": "8ad086fa932a0b5401932e82a3e5b211",
                          "sourceTaxItemId": null,
                          "jurisdiction": "CALIFORNIA",
                          "locationCode": null,
                          "name": "STATE TAX",
                          "taxAmount": 0.5,
                          "applicableTaxUnRounded": 0.5,
                          "country": null,
                          "taxCode": "ServiceTaxCode",
                          "taxCodeDescription": null,
                          "taxDate": "2024-11-15",
                          "taxRate": 0.05,
                          "taxMode": "TaxExclusive",
                          "taxRateDescription": null,
                          "taxRateType": "Percentage",
                          "updatedById": "8ad084a67f9c7138017fab8a8b511b5a",
                          "updatedDate": "2024-11-15 14:41:04",
                          "financeInformation": {
                            "salesTaxPayableAccountingCode": "Sales Tax Payable",
                            "salesTaxPayableAccountingCodeType": "SalesTaxPayable",
                            "accountsReceivableAccountingCode": "Accounts Receivable",
                            "accountsReceivableAccountingCodeType": "AccountsReceivable"
                          }
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETTaxationItemListType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create taxation items for a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/unapply": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nUnapplies an applied credit memo from one or more invoices and debit memos. The full applied amount from invoices and debit memos is transferred into the unapplied amount of the credit memo. \n\nYou can unapply a credit memo from an invoice or a debit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\nWhen you unapply a credit memo, the total number of credit memo items and the items that credit memo items to be unapplied from must be less than or equal to 15,000.\n\nIf the limit is hit, you can follow the following instructions:\n\n- If you want to unapply one credit memo without specifying invoices or debit memos and the limit is hit, you have to specify the invoice items or debit memo items in the request to decrease the number of items.\n- If you want to unapply one credit memo from multiple specified invoices or debit memos, decrease the number of invoices or debit memos in the request.\n- If you want to unapply one credit memo from a single invoice or debit memo with a large volume of items, you have to specify invoice items or debit memo items in the request. The maximum number of invoice items or debit memo items that you can specify in the request is 1,000.\n- If a credit memo has a large volume of items, you have to specify credit memo items in the request. The maximum number of credit memo items that you can specify in the request is 1,000.\n- When unapplying a credit memo, the total number of the credit memo's item parts must be less than or equal to 1,000. Otherwise, the operation would fail and an error message would pop up. When you see this error, you can try using the Unapply a credit memo API as an alternative. Similarly, make sure that all the requirements listed in the API reference are met.\n",
        "operationId": "PUT_UnapplyCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnapplyCreditMemoType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8a90aac892dc8c3a0192dce41af10077",
                      "number": "CM00000619",
                      "accountId": "8a90b4488e7d5c0f018e7db3892400b2",
                      "accountNumber": "A00000370",
                      "currency": "USD",
                      "creditMemoDate": "2024-10-30",
                      "targetDate": null,
                      "postedById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "postedOn": "2024-10-30 18:06:30",
                      "status": "Posted",
                      "amount": 15,
                      "taxAmount": 0,
                      "totalTaxExemptAmount": 0,
                      "unappliedAmount": 1,
                      "refundAmount": 0,
                      "appliedAmount": 14,
                      "comment": "",
                      "source": "AdhocFromInvoice",
                      "sourceId": null,
                      "referredInvoiceId": "8a90d7a892d82d920192dbcb314501c7",
                      "reasonCode": "Correcting invoice error",
                      "createdDate": "2024-10-30 18:06:29",
                      "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "updatedDate": "2024-10-30 18:08:37",
                      "updatedById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "cancelledOn": null,
                      "cancelledById": null,
                      "latestPDFFileId": null,
                      "transferredToAccounting": "No",
                      "excludeFromAutoApplyRules": false,
                      "autoApplyUponPosting": false,
                      "reversed": false,
                      "taxStatus": "Complete",
                      "sourceType": "Invoice",
                      "eInvoiceStatus": "Failed",
                      "eInvoiceErrorCode": "IntegrationError",
                      "eInvoiceErrorMessage": "Input string was null.",
                      "eInvoiceFileId": null,
                      "taxMessage": null,
                      "billToContactId": null,
                      "billToContactSnapshotId": "8a90b4488e7d5c0f018e7dbef1f900c9",
                      "sequenceSetId": null,
                      "invoiceGroupNumber": null,
                      "revenueImpacting": "Yes",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Unapply a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/unpost": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nUnposts a credit memo that is in Posted status. If a credit memo has been applied or refunded, you are not allowed to unpost it. After a credit memo is unposted, its status becomes Draft. \n\nYou can unpost credit memos only if you have the [Billing permissions](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles#Billing_Permissions). \n\nYou can prevent  an unpost operation by configuring the  'Do not allow unposting invoices and memos if their revenue is already recognized in a closed accounting period' accounting  rule. The default value of this rule is set to 'disabled.' \n\n For more information,  see [Configure Accounting Rules](https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance/D_Finance_Settings/D_Configure_Accounting_Rules#Do_not_allow_unposting_invoices_and_memos_if_their_revenue_is_already_recognized_in_a_closed_accounting_period).",
        "operationId": "PUT_UnpostCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172 or CM00000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "402890555a7e9791015a7f15fe44001c",
                      "accountNumber": "A00000001",
                      "amount": 3.1,
                      "appliedAmount": 0,
                      "autoApplyUponPosting": false,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "cancelledById": null,
                      "cancelledOn": null,
                      "comment": "",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 10:07:10",
                      "creditMemoDate": "2017-03-01",
                      "currency": "USD",
                      "einvoiceErrorCode": null,
                      "einvoiceErrorMessage": null,
                      "einvoiceFileId": null,
                      "einvoiceStatus": "Processing",
                      "excludeFromAutoApplyRules": false,
                      "id": "402890555a7e9791015a879f064a0054",
                      "invoiceGroupNumber": "N-0001",
                      "latestPDFFileId": "ac1ebc24569sd",
                      "number": "CM00000012",
                      "postedById": "402881e522cf4f9b0122cf5d82860002",
                      "postedOn": "2017-03-01 14:28:06",
                      "reasonCode": "Correcting invoice error",
                      "referredInvoiceId": "402890555a7e9791015a7f1756aa0035",
                      "refundAmount": 0,
                      "reversed": false,
                      "sequenceSetId": null,
                      "source": "API",
                      "sourceId": null,
                      "sourceType": "Standalone",
                      "status": "Draft",
                      "success": true,
                      "targetDate": null,
                      "taxAmount": 0.1,
                      "taxMessage": null,
                      "taxStatus": "Complete",
                      "totalTaxExemptAmount": 0,
                      "transferredToAccounting": "No",
                      "unappliedAmount": 3.1,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 14:28:06"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Unpost a credit memo",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/invoice/{invoiceKey}": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nCreates an ad-hoc credit memo from an invoice.\n\nYou can create a credit memo from an invoice only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\nFor a use case of this operation, see [Create credit memo](https://developer.zuora.com/rest-api/general-concepts/authentication//#Create-credit-memo).\n\nZero-amount memo items are supported in the following scenarios:\n- If you want to correct taxation items only for an invoice, you can set the memo item amount to zero, but the taxation item amount to non-zero.\n- If you want to correct personal data in an invoice, you can set the memo item amount to zero to create a zero-amount credit memo from an invoice.\n",
        "operationId": "POST_CreditMemoFromInvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "The ID or number of an invoice that you want to create a credit memo from. For example, 2c93808457d787030157e030d10f3f64 or INV00000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreditMemoFromInvoiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8a90e4a792d82d8c0192dbda90671d66",
                      "number": "CM00000618",
                      "accountId": "8a90b4488e7d5c0f018e7db3892400b2",
                      "accountNumber": "A00000370",
                      "currency": "USD",
                      "creditMemoDate": "2024-10-30",
                      "targetDate": null,
                      "postedById": null,
                      "postedOn": null,
                      "status": "Draft",
                      "amount": 10,
                      "taxAmount": 0,
                      "totalTaxExemptAmount": 0,
                      "unappliedAmount": 10,
                      "refundAmount": 0,
                      "appliedAmount": 0,
                      "comment": null,
                      "source": "AdhocFromInvoice",
                      "sourceId": null,
                      "referredInvoiceId": "8a90d7a892d82d920192dbcb314501c7",
                      "reasonCode": "Correcting invoice error",
                      "createdDate": "2024-10-30 13:16:27",
                      "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "updatedDate": "2024-10-30 13:16:27",
                      "updatedById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "cancelledOn": null,
                      "cancelledById": null,
                      "latestPDFFileId": null,
                      "transferredToAccounting": "No",
                      "excludeFromAutoApplyRules": false,
                      "autoApplyUponPosting": false,
                      "reversed": false,
                      "taxStatus": "Complete",
                      "sourceType": "Invoice",
                      "eInvoiceStatus": null,
                      "eInvoiceErrorCode": null,
                      "eInvoiceErrorMessage": null,
                      "eInvoiceFileId": null,
                      "taxMessage": null,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "sequenceSetId": null,
                      "invoiceGroupNumber": null,
                      "revenueImpacting": "Yes",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETCreditMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a credit memo from an invoice",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/unapply-async-jobs/{unapplyAsyncJobId}": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n  Retrieves information about a specific Async Credit Memo Unapply job.  ",
        "operationId": "getUnapplyCreditMemoAsyncJob",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique ID of a Credit Memo Async Unapply Job Id. For example, 8a92ade496140e830196148cd0af000a.\n",
            "in": "path",
            "name": "unapplyAsyncJobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "8a92ade496140e830196148cd0af000a",
                  "status": "Processed",
                  "operationType": "AsyncCreditMemoUnapply",
                  "referenceId": "4028905f5a890526015a8d73f73d0015",
                  "referenceType": "CreditMemo",
                  "error": null,
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSettlementAsyncJobResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.        \n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an async unapply credit memo job by ID",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/apply-async-jobs/{applyAsyncJobId}": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n  Retrieves information about a specific Async Credit Memo Apply job.  ",
        "operationId": "getApplyCreditMemoAsyncJob",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique ID of a Credit Memo Async Apply Job Id. For example, 8a92ade496140e830196141f6cfa0001.\n",
            "in": "path",
            "name": "applyAsyncJobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "8a92ade496140e830196141f6cfa0001",
                  "status": "Processed",
                  "operationType": "AsyncCreditMemoApply",
                  "referenceId": "4028905f5a890526015a8d73f73d0015",
                  "referenceType": "CreditMemo",
                  "error": null,
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSettlementAsyncJobResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.        \n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an async unapply credit memo job by ID",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/apply-async": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\n  Asynchronously applies a posted credit memo to one or more invoices\n  You can apply a credit memo to an invoice only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n  When you apply a credit memo, the total number of credit memo items and the items that credit memo items to be applied to must be less than or equal to 300,000.\n  The maximum number of invoices that you can specify in the request is 1,000\n  If the Proration application rule is used, when applying credit memos, the following quantity must be less than or equal to 10,000: \n\n(number of invoice items) * number of credit memo items\n\nOtherwise, the First In First Out rule will be used instead of the Proration rule.\n",
        "operationId": "applyCreditMemoAsync",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AsyncApplyCreditMemoRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "402881e522cf4f9b0122cf5d82860002",
                  "status": "Pending",
                  "operationType": "AsyncCreditMemoApply",
                  "referenceId": "4028905f5a890526015a8d73f73d0015",
                  "referenceType": "CreditMemo",
                  "error": null,
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSettlementAsyncJobResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.        \n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Apply a credit memo aysnchronously",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/unapply-async": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n   Asynchronously Unapplies an applied credit memo from one or more invoices. The full applied amount from invoices is transferred into the unapplied amount of the credit memo. \n\nYou can unapply a credit memo from an invoice only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles)\n  When you unapply a credit memo, the total number of credit memo items and the items that credit memo items to be unapplied from must be less than or equal to 300,000.\n  The maximum number of invoices that you can specify in the request is 1,000\n",
        "operationId": "unapplyCreditMemoAsync",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The unique ID or number of a credit memo. For example, 8a8082e65b27f6c3015ba45ff82c7172.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AsyncUnapplyCreditMemoRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "id": "8a92ade496140e830196148cd0af000a",
                  "status": "Pending",
                  "operationType": "AsyncCreditMemoUnapply",
                  "referenceId": "8a8082e65b27f6c3015ba45ff82c7172",
                  "referenceType": "CreditMemo",
                  "error": null,
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/InvoiceSettlementAsyncJobResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.        \n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Unapply a credit memo asynchronously",
        "tags": [
          "Credit Memos"
        ]
      }
    },
    "/v1/debit-memos": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nRetrieves the information about all debit memos associated with all customer accounts.\n\n### Filtering\n\nYou can use query parameters to restrict the data returned in the response. Each query parameter corresponds to one field in the response body.\n\nIf the value of a filterable field is string, you can set the corresponding query parameter to `null` when filtering. Then, you can get the response data with this field value being `null`. \n\nExamples:\n\n- /v1/debit-memos?status=Posted\n\n- /v1/debit-memos?referredInvoiceId=null&status=Draft\n\n- /v1/debit-memos?status=Posted&type=External&sort=+number\n",
        "operationId": "GET_DebitMemos",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "This parameter filters the response based on the `accountId` field.\n",
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `accountNumber` field.\n",
            "in": "query",
            "name": "accountNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `amount` field.\n",
            "in": "query",
            "name": "amount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `balance` field.\n",
            "in": "query",
            "name": "balance",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `beAppliedAmount` field.\n",
            "in": "query",
            "name": "beAppliedAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdById` field.\n",
            "in": "query",
            "name": "createdById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdDate` field.\n",
            "in": "query",
            "name": "createdDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `currency` field.\n",
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `debitMemoDate` field.\n",
            "in": "query",
            "name": "debitMemoDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `dueDate` field.\n",
            "in": "query",
            "name": "dueDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `number` field.\n",
            "in": "query",
            "name": "number",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `referredInvoiceId` field.\n",
            "in": "query",
            "name": "referredInvoiceId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `status` field.\n",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "Draft",
                "Posted",
                "Canceled",
                "Error",
                "PendingForTax",
                "Generating",
                "CancelInProgress"
              ],
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `targetDate` field.\n",
            "in": "query",
            "name": "targetDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `taxAmount` field.\n",
            "in": "query",
            "name": "taxAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `totalTaxExemptAmount` field.\n",
            "in": "query",
            "name": "totalTaxExemptAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedById` field.\n",
            "in": "query",
            "name": "updatedById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedDate` field.\n",
            "in": "query",
            "name": "updatedDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter restricts the order of the data returned in the response. You can use this parameter to supply a dimension you want to sort on.\n\nA sortable field uses the following form: \n\n*operator* *field_name*\n\nYou can use at most two sortable fields in one URL path. Use a comma to separate sortable fields. For example:  *operator* *field_name*, *operator* *field_name*  \n\n*operator* is used to mark the order of sequencing. The operator is optional. If you only specify the sortable field without any operator, the response data is sorted in descending order by this field.\n\n  - The `-` operator indicates an ascending order.\n  - The `+` operator indicates a descending order.\n\nBy default, the response data is displayed in descending order by debit memo number.\n\n*field_name* indicates the name of a sortable field. The supported sortable fields of this operation are as below:\n\n  - number\n  - accountId\n  - debitMemoDate\n  - targetDate\n  - dueDate\n  - amount\n  - taxAmount\n  - totalTaxExemptAmount\n  - balance\n  - beAppliedAmount\n  - referredInvoiceId\n  - createdDate\n  - createdById\n  - updatedDate\n  - updatedById\n\n  \nExamples:\n\n- /v1/debit-memos?sort=+number\n\n- /v1/debit-memos?status=Processed&sort=-number,+amount\n",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "debitmemos": [
                        {
                          "accountId": "402890555a7e9791015a7f15fe44001c",
                          "accountNumber": "AN_1679649466484",
                          "amount": 50,
                          "autoPay": true,
                          "balance": 50,
                          "beAppliedAmount": 0,
                          "billToContactId": null,
                          "billToContactSnapshotId": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "comment": "the comment",
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 17:24:14",
                          "currency": "USD",
                          "debitMemoDate": "2017-10-17",
                          "dueDate": "2017-11-16",
                          "einvoiceErrorCode": null,
                          "einvoiceErrorMessage": null,
                          "einvoiceFileId": null,
                          "einvoiceStatus": "Processing",
                          "id": "402890555a87d7f5015a892f2ba10057",
                          "invoiceGroupNumber": "N-0001",
                          "latestPDFFileId": "402890555a87d7f5015a892f2c5c0060",
                          "number": "DM00000006",
                          "paymentTerm": null,
                          "postedById": null,
                          "postedOn": null,
                          "reasonCode": "Correcting invoice error",
                          "referredInvoiceId": null,
                          "sequenceSetId": null,
                          "sourceType": "Standalone",
                          "status": "Draft",
                          "targetDate": null,
                          "taxAmount": 0,
                          "taxMessage": null,
                          "taxStatus": "Complete",
                          "totalTaxExemptAmount": 0,
                          "transferredToAccounting": "No",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 17:24:14"
                        },
                        {
                          "accountId": "402890555a7d4022015a7dabf5f60088",
                          "accountNumber": "AN_1679649466488",
                          "amount": 0.01,
                          "autoPay": true,
                          "balance": 0.01,
                          "beAppliedAmount": 0,
                          "billToContactId": null,
                          "billToContactSnapshotId": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "comment": "the comment",
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 17:13:15",
                          "currency": "USD",
                          "debitMemoDate": "2017-11-30",
                          "dueDate": "2017-12-30",
                          "einvoiceErrorCode": null,
                          "einvoiceErrorMessage": null,
                          "einvoiceFileId": null,
                          "einvoiceStatus": "Processing",
                          "id": "402890555a87d7f5015a89251edc0045",
                          "invoiceGroupNumber": "N-0001",
                          "latestPDFFileId": "ac1ebc24569sd",
                          "number": "DM00000003",
                          "paymentTerm": null,
                          "postedById": null,
                          "postedOn": null,
                          "reasonCode": "Charge Dispute",
                          "referredInvoiceId": "402890555a7d4022015a7dadb3b300a4",
                          "sequenceSetId": null,
                          "sourceType": "Standalone",
                          "status": "Draft",
                          "targetDate": null,
                          "taxAmount": 0.01,
                          "taxMessage": null,
                          "taxStatus": "Complete",
                          "totalTaxExemptAmount": 0,
                          "transferredToAccounting": "No",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 17:13:15"
                        },
                        {
                          "accountId": "402890555a7d4022015a7dabf5f60088",
                          "accountNumber": "AN_1679649466488",
                          "amount": 9,
                          "autoPay": true,
                          "balance": 9,
                          "beAppliedAmount": 0,
                          "billToContactId": null,
                          "billToContactSnapshotId": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "comment": "",
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 17:01:00",
                          "currency": "USD",
                          "debitMemoDate": "2017-03-01",
                          "dueDate": "2017-03-31",
                          "einvoiceErrorCode": null,
                          "einvoiceErrorMessage": null,
                          "einvoiceFileId": null,
                          "einvoiceStatus": "Processing",
                          "id": "402890555a87d7f5015a8919e4fe002e",
                          "invoiceGroupNumber": "N-0001",
                          "latestPDFFileId": "402890555a87d7f5015a8919e95d003a",
                          "number": "DM00000002",
                          "paymentTerm": null,
                          "postedById": null,
                          "postedOn": null,
                          "reasonCode": "Correcting invoice error",
                          "referredCreditMemoId": "1a2b3c4d5e6f",
                          "referredInvoiceId": "402890555a7d4022015a7dadb3b300a4",
                          "sequenceSetId": null,
                          "sourceType": "Standalone",
                          "status": "Draft",
                          "targetDate": null,
                          "taxAmount": 8,
                          "taxMessage": null,
                          "taxStatus": "Complete",
                          "totalTaxExemptAmount": 0,
                          "transferredToAccounting": "No",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 17:01:00"
                        },
                        {
                          "accountId": "402890555a7e9791015a7f15fe44001c",
                          "accountNumber": "AN_1679649466684",
                          "amount": 8.02,
                          "autoPay": true,
                          "balance": 8.02,
                          "beAppliedAmount": 0,
                          "billToContactId": null,
                          "billToContactSnapshotId": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "comment": "",
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 10:26:16",
                          "currency": "USD",
                          "debitMemoDate": "2017-03-01",
                          "dueDate": "2017-03-31",
                          "einvoiceErrorCode": null,
                          "einvoiceErrorMessage": null,
                          "einvoiceFileId": null,
                          "einvoiceStatus": "Processing",
                          "id": "402890555a7e9791015a87b082940067",
                          "invoiceGroupNumber": "N-0001",
                          "latestPDFFileId": "402890555a7e9791015a87b083f00072",
                          "number": "DM00000001",
                          "paymentTerm": null,
                          "postedById": null,
                          "postedOn": null,
                          "reasonCode": "Correcting invoice error",
                          "referredCreditMemoId": "1a2b3c4d5e6f",
                          "referredInvoiceId": "402890555a7e9791015a7f1756aa0035",
                          "sequenceSetId": null,
                          "sourceType": "Standalone",
                          "status": "Draft",
                          "targetDate": null,
                          "taxAmount": 0.02,
                          "taxMessage": null,
                          "taxStatus": "Complete",
                          "totalTaxExemptAmount": 0,
                          "transferredToAccounting": "No",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 10:45:03"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List debit memos",
        "tags": [
          "Debit Memos"
        ]
      },
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nCreates an ad-hoc debit memo from a product rate plan charge. Zuora supports the creation of debit memos from any type of product rate plan charge. The charges can also have any amount and any charge model, except for discout charge models.\n\nWhen debit memos are created from product rate plan charges, the specified amount with decimal places is now validated based on the decimal places supported by each currency.\n\nYou can create a debit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n",
        "operationId": "POST_DebitMemoFromPrpc",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DebitMemoFromChargeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad093789169a0c001916e6be7cf7113",
                      "number": "DM00000002",
                      "accountId": "8ad09be48db5aba7018db604776d4854",
                      "accountNumber": "A00000097",
                      "debitMemoDate": "2024-08-19",
                      "currency": "USD",
                      "targetDate": null,
                      "dueDate": "2024-09-18",
                      "postedOn": null,
                      "postedById": null,
                      "status": "Draft",
                      "amount": 10,
                      "taxAmount": 0,
                      "totalTaxExemptAmount": 0,
                      "balance": 10,
                      "beAppliedAmount": 0,
                      "autoPay": true,
                      "comment": null,
                      "referredInvoiceId": null,
                      "transferredToAccounting": "No",
                      "reasonCode": "Correcting invoice error",
                      "createdDate": "2024-08-19 23:14:11",
                      "createdById": "b243314d594646d3b2651aeedd4be47e",
                      "updatedDate": "2024-08-19 23:14:11",
                      "updatedById": "b243314d594646d3b2651aeedd4be47e",
                      "cancelledOn": null,
                      "cancelledById": null,
                      "referredCreditMemoId": "1a2b3c4d5e6f",
                      "latestPDFFileId": "ac1ebc24569sd",
                      "taxStatus": "Complete",
                      "sourceType": "Standalone",
                      "taxMessage": null,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "paymentTerm": null,
                      "sequenceSetId": null,
                      "invoiceGroupNumber": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a debit memo from a charge",
        "tags": [
          "Debit Memos"
        ]
      },
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nUpdates the due date for multiple debit memos in one single request. \n\nThis API operation will be deprecated. You can use the [Update debit memos](https://developer.zuora.com/api-references/api/operation/PUT_BulkUpdateDebitMemos) instead, which provides more flexible functionality.\n",
        "operationId": "PUT_UpdateDebitMemosDueDates",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTBatchDebitMemosRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update due dates for debit memos",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/bulk": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nCreates multiple debit memos from invoices or product rate plan charges. You can create a maximum of 50 debit memos in one single request. \n\n- If you set the `sourceType` request field to `Invoice`, you can create multiple debit memos from invoices.\n- If you set the `sourceType` request field to `Standalone`, you can create multiple debit memos from product rate plan charges.\n\nThe debit memos that are created are each in separate database transactions. If the creation of one debit memo fails, other debit memos can still be created successfully.\n\nYou can create  debit memos only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n",
        "operationId": "POST_CreateDebitMemos",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTBulkDebitMemosRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "memos": [
                        {
                          "accountId": "4028ab1f87121698018712fef63e33cb",
                          "accountNumber": "AN_Test11679650911374",
                          "amount": 100,
                          "autoPay": true,
                          "balance": 100,
                          "beAppliedAmount": 0,
                          "billToContactId": null,
                          "billToContactSnapshotId": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "comment": "This is a comment",
                          "createdById": "3e2bcd869cea43eeb00d7a20cc1cb72b",
                          "createdDate": "2023-03-24 15:12:01",
                          "currency": "USD",
                          "debitMemoDate": "2023-03-24",
                          "dueDate": "2023-03-24",
                          "einvoiceErrorCode": null,
                          "einvoiceErrorMessage": null,
                          "einvoiceFileId": null,
                          "einvoiceStatus": "Processing",
                          "id": "4028ab1f87121698018712ff1b0633e2",
                          "invoiceGroupNumber": "N-0001",
                          "latestPDFFileId": "ac1ebc24569sd",
                          "number": "DM00000001",
                          "organizationLabel": "MS US",
                          "paymentTerm": null,
                          "postedById": null,
                          "postedOn": null,
                          "reasonCode": "Correcting invoice error",
                          "referredCreditMemoId": "1a2b3c4d5e6f",
                          "referredInvoiceId": null,
                          "sequenceSetId": null,
                          "sourceType": "Standalone",
                          "status": "Draft",
                          "success": true,
                          "targetDate": null,
                          "taxAmount": 0,
                          "taxMessage": null,
                          "taxStatus": "Complete",
                          "totalTaxExemptAmount": 0,
                          "transferredToAccounting": "No",
                          "updatedById": "3e2bcd869cea43eeb00d7a20cc1cb72b",
                          "updatedDate": "2023-03-24 15:12:01"
                        },
                        {
                          "objectIndex": 1,
                          "processId": "0356073CB721291A",
                          "reasons": [
                            {
                              "code": 50000040,
                              "message": "Cannot find a Invoice instance with id test."
                            }
                          ],
                          "success": false
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/BulkDebitMemosResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create debit memos",
        "tags": [
          "Debit Memos"
        ]
      },
      "put": {
        "description": "**Notes:** \n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n- You can update debit memos only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\nUpdates the basic and finance information about multiple debit memos. You can update a maximum of 50 credit memos in one single request. \n\nCurrently, Zuora supports updating tax-exclusive memo items, but does not support updating tax-inclusive memo items. If the amount of a memo item is updated, the tax will be recalculated in the following conditions:\n- The memo is created from a product rate plan charge and you use Avalara to calculate the tax.\n- The memo is created from an invoice and you use Avalara or Zuora Tax to calculate the tax.\n\nThe [Edit credit and debit memos](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Credit_memos_and_debit_memos/AC_Management_of_credit_and_debit_memos/Edit_credit_and_debit_memos#Edit_credit_memos_and_debit_memos_through_the_API) tutorial demonstrates how to use this operation to add and delete memo items.\n\nThe credit memos that are updated are each in separate database transactions. If the update of one debit memo fails, other debit memos can still be updated successfully.\n",
        "operationId": "PUT_UpdateDebitMemos",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTBulkDebitMemosRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "memos": [
                        {
                          "accountId": "4028ab1f87121698018726851cc765ee",
                          "accountNumber": "AN_Test11679978470016",
                          "amount": 100,
                          "autoPay": true,
                          "balance": 100,
                          "beAppliedAmount": 0,
                          "billToContactId": null,
                          "billToContactSnapshotId": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "comment": "new comment123",
                          "createdById": "aff81dbb5dd846868685592640363b5b",
                          "createdDate": "2023-03-28 10:11:45",
                          "currency": "USD",
                          "debitMemoDate": "2023-03-27",
                          "dueDate": "2023-03-27",
                          "einvoiceErrorCode": null,
                          "einvoiceErrorMessage": null,
                          "einvoiceFileId": null,
                          "einvoiceStatus": "Processing",
                          "id": "4028ab1f8712169801872685a5f46605",
                          "invoiceGroupNumber": "N-0001",
                          "latestPDFFileId": "ac1ebc24569sd",
                          "number": "DM00000001",
                          "organizationLabel": "MS US",
                          "paymentTerm": null,
                          "postedById": null,
                          "postedOn": null,
                          "reasonCode": "Correcting invoice error",
                          "referredCreditMemoId": "1a2b3c4d5e6f",
                          "referredInvoiceId": null,
                          "sequenceSetId": null,
                          "sourceType": "Standalone",
                          "status": "Draft",
                          "success": true,
                          "targetDate": null,
                          "taxAmount": 0,
                          "taxMessage": null,
                          "taxStatus": "Complete",
                          "totalTaxExemptAmount": 0,
                          "transferredToAccounting": "No",
                          "updatedById": "aff81dbb5dd846868685592640363b5b",
                          "updatedDate": "2023-03-28 10:12:37"
                        },
                        {
                          "id": "2c98907562482a8301624b9c0a1a0056",
                          "objectIndex": 1,
                          "processId": "string",
                          "reasons": [
                            {
                              "code": "string",
                              "message": "string"
                            }
                          ],
                          "success": false
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/BulkDebitMemosResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update debit memos",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/pdf-status": {
      "get": {
        "description": "Retrieves the PDF generation statuses of a batch of debit memos.\n",
        "operationId": "Get_DebitMemoPdfStatus",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The IDs or numbers of the debit memos separated by commas. For example - `?debitMemoKeys=2c92c8955bd63cc1015bd7c151af02ab,4b65b8605bd63cc1015bd7c151af02cd,DM0000001`. A maximum of 50 keys can be entered in this field. ",
            "in": "query",
            "name": "debitMemoKeys",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "debitMemoFiles": [
                    {
                      "debitMemoId": "402824aa8cc894d5018cc8a120576881",
                      "debitMemoNumber": "DM00000003",
                      "pdfGenerationStatus": "Generated",
                      "createdOn": "2024-01-01 11:32:19",
                      "updatedOn": "2024-01-01 11:32:19",
                      "pdfFileUrl": "/v1/files/2c98901f62d7d83d0162d7facea6262d"
                    },
                    {
                      "debitMemoId": "2c98908a904dfc2601904e6e14090241",
                      "debitMemoNumber": "DM00000004",
                      "pdfGenerationStatus": "Error",
                      "createdOn": "2024-01-02 10:14:13",
                      "updatedOn": "2024-01-02 10:14:13",
                      "errorCode": "INVALID_TEMPLATE",
                      "errorMessage": "Unknown merge filed chargeNumber__c"
                    },
                    {
                      "debitMemoId": "623935cc6ee105f7341ee1d453809214",
                      "debitMemoNumber": "DM00000005",
                      "pdfGenerationStatus": "Pending",
                      "createdOn": "2024-01-01 11:35:56",
                      "updatedOn": "2024-01-01 11:35:56"
                    }
                  ],
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/GetDebitMemoPdfStatusBatchResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "processId",
                  "reasons": [
                    {
                      "code": "50000020",
                      "message": "Credit memo key is required"
                    }
                  ],
                  "success": false
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "example": {
                  "message": "Authentication error"
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              },
              "WWW-Authenticate": {
                "description": "The value of this header is: ``` Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API ``` ",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Forbidden",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve the PDF file generation status of debit memos",
        "tags": [
          "Debit Memos"
        ],
        "x-accepts": "application/json"
      }
    },
    "/v1/debit-memos/{debitMemoId}/application-parts": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves information about the payments or credit memos that are applied to a specified debit memo. \n\nIf you use the Zuora version 341.0 or a [later available version](https://developer.zuora.com/v1-api-reference/api-versions/), this operation will return only processed payments applied to the debit memos. For Zuora versions earlier than 341.0,  it returns all payments associated with the debit memo regardless of the payment status.\n",
        "operationId": "GET_DebitMemoApplicationParts",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e.\n",
            "in": "path",
            "name": "debitMemoId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "applicationParts": [
                        {
                          "appliedAmount": 22,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2018-01-02 11:42:16",
                          "creditMemoId": "4028905f60a165a50160b4f632ff023d",
                          "paymentId": null,
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2018-01-02 11:42:16"
                        },
                        {
                          "appliedAmount": 11,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2018-01-02 11:41:38",
                          "creditMemoId": null,
                          "paymentId": "4028905f60a165a50160b4f5d5cb0229",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2018-01-02 11:41:38"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetDebitMemoApplicationPartCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all application parts of a debit memo",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoId}/items/{dmitemid}/taxation-items": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nRetrieves information about the taxation items of a specific debit memo item.\n",
        "operationId": "GET_TaxationItemsOfDebitMemoItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "description": "The unique ID of a debit memo item. You can get the debit memo item ID from the response of [List debit memo items](https://developer.zuora.com/api-references/api/operation/GET_DebitMemoItems).\n",
            "in": "path",
            "name": "dmitemid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e.\n",
            "in": "path",
            "name": "debitMemoId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "data": [
                        {
                          "balance": 10,
                          "creditAmount": 0,
                          "exemptAmount": 10,
                          "financeInformation": {
                            "salesTaxPayableAccountingCode": "Check",
                            "salesTaxPayableAccountingCodeType": "Cash"
                          },
                          "id": "402883836904567d01690530df760231",
                          "jurisdiction": "Jurisdiction",
                          "locationCode": "8",
                          "name": "taxName_0",
                          "paymentAmount": 0,
                          "sourceTaxItemId": null,
                          "taxAmount": 10,
                          "taxCode": "taxCode",
                          "taxCodeDescription": "taxCodeDescription",
                          "taxDate": "2016-10-10",
                          "taxRate": 0.1,
                          "taxRateDescription": "taxRateDescription",
                          "taxRateType": "Percentage"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETTaxationItemsOfDebitMemoItemType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.        \n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all taxation items of a debit memo item",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}": {
      "delete": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nDeletes a debit memo. Only debit memos with the Cancelled status can be deleted. \n\nYou can delete a debit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n  The Edit credit and debit memos tutorial demonstrates how to use this operation to add and delete memo items.",
        "operationId": "DELETE_DebitMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000003.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a debit memo",
        "tags": [
          "Debit Memos"
        ]
      },
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about a specific debit memo.\n",
        "operationId": "GET_DebitMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028ab1f87121698018722ff25be58a1",
                      "accountNumber": "AN_Test11679919358984",
                      "amount": 100,
                      "autoPay": true,
                      "balance": 100,
                      "beAppliedAmount": 0,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "cancelledById": null,
                      "cancelledOn": null,
                      "comment": "This is a comment",
                      "createdById": "0124a1a5d0f84d4288d875fc3b34b1e1",
                      "createdDate": "2023-03-27 17:46:01",
                      "currency": "USD",
                      "debitMemoDate": "2023-03-27",
                      "dueDate": "2023-03-27",
                      "einvoiceErrorCode": null,
                      "einvoiceErrorMessage": null,
                      "einvoiceFileId": null,
                      "einvoiceStatus": "Processing",
                      "id": "4028ab1f87121698018722ff2bff58b8",
                      "invoiceGroupNumber": "N-0001",
                      "latestPDFFileId": "ac1ebc24569sd",
                      "number": "DM00000001",
                      "organizationLabel": "MS US",
                      "paymentTerm": null,
                      "postedById": null,
                      "postedOn": null,
                      "reasonCode": "Correcting invoice error",
                      "referredCreditMemoId": "1a2b3c4d5e6f",
                      "referredInvoiceId": null,
                      "sequenceSetId": null,
                      "sourceType": "Standalone",
                      "status": "Draft",
                      "success": true,
                      "targetDate": null,
                      "taxAmount": 0,
                      "taxMessage": null,
                      "taxStatus": "Complete",
                      "totalTaxExemptAmount": 0,
                      "transferredToAccounting": "No",
                      "updatedById": "0124a1a5d0f84d4288d875fc3b34b1e1",
                      "updatedDate": "2023-03-27 17:46:01"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a debit memo",
        "tags": [
          "Debit Memos"
        ]
      },
      "put": {
        "description": "**Notes:** \n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n- You can update a debit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\nUpdates the basic and finance information about a debit memo. \n\n\nCurrently, Zuora supports updating tax-exclusive memo items, but does not support updating tax-inclusive memo items. If the amount of a memo item is updated, the tax will be recalculated in the following conditions:\n- The memo is created from a product rate plan charge and you use Avalara to calculate the tax.\n- The memo is created from an invoice and you use Avalara or Zuora Tax to calculate the tax.\n\nThe [Edit credit and debit memos](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Credit_memos_and_debit_memos/AC_Management_of_credit_and_debit_memos/Edit_credit_and_debit_memos#Edit_credit_memos_and_debit_memos_through_the_API) tutorial demonstrates how to use this operation to add and delete memo items.\n",
        "operationId": "PUT_DebitMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTDebitMemoType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028ab1f87121698018722f82d133fe4",
                      "accountNumber": "AN_Test11679918902100",
                      "amount": 100,
                      "autoPay": true,
                      "balance": 100,
                      "beAppliedAmount": 0,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "cancelledById": null,
                      "cancelledOn": null,
                      "comment": "Details about this Debit Memo",
                      "createdById": "97e12d40f0ab4418a95a93118b272fb6",
                      "createdDate": "2023-03-27 17:38:24",
                      "currency": "USD",
                      "debitMemoDate": "2023-03-27",
                      "dueDate": "2023-03-27",
                      "einvoiceErrorCode": null,
                      "einvoiceErrorMessage": null,
                      "einvoiceFileId": null,
                      "einvoiceStatus": "Processing",
                      "id": "4028ab1f87121698018722f8335b3ffb",
                      "invoiceGroupNumber": "N-0001",
                      "latestPDFFileId": "ac1ebc24569sd",
                      "number": "DM00000001",
                      "organizationLabel": "MS US",
                      "paymentTerm": null,
                      "postedById": null,
                      "postedOn": null,
                      "reasonCode": "Correcting invoice error",
                      "referredCreditMemoId": "1a2b3c4d5e6f",
                      "referredInvoiceId": null,
                      "sequenceSetId": null,
                      "sourceType": "Standalone",
                      "status": "Draft",
                      "success": true,
                      "targetDate": null,
                      "taxAmount": 0,
                      "taxMessage": null,
                      "taxStatus": "Complete",
                      "totalTaxExemptAmount": 0,
                      "transferredToAccounting": "No",
                      "updatedById": "97e12d40f0ab4418a95a93118b272fb6",
                      "updatedDate": "2023-03-27 17:38:27"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a debit memo",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/cancel": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nCancels a debit memo. Only debit memos with the Draft status can be cancelled. \n\nYou can cancel a debit memo only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n",
        "operationId": "PUT_CancelDebitMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000003.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028ab1f87121698018722fd2e705066",
                      "accountNumber": "AN_Test11679919230033",
                      "amount": 100,
                      "autoPay": true,
                      "balance": 100,
                      "beAppliedAmount": 0,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "cancelledById": "bc0211e8ca1440eb97a0aff808f87293",
                      "cancelledOn": "2023-03-27 17:43:59",
                      "comment": "This is a comment",
                      "createdById": "bc0211e8ca1440eb97a0aff808f87293",
                      "createdDate": "2023-03-27 17:43:52",
                      "currency": "USD",
                      "debitMemoDate": "2023-03-27",
                      "dueDate": "2023-03-27",
                      "einvoiceErrorCode": null,
                      "einvoiceErrorMessage": null,
                      "einvoiceFileId": null,
                      "einvoiceStatus": "Processing",
                      "id": "4028ab1f87121698018722fd34c6507d",
                      "invoiceGroupNumber": "N-0001",
                      "latestPDFFileId": "4028ab1f87121698018722fd39fe5087",
                      "number": "DM00000001",
                      "organizationLabel": "MS US",
                      "paymentTerm": null,
                      "postedById": null,
                      "postedOn": null,
                      "reasonCode": "Correcting invoice error",
                      "referredCreditMemoId": "1a2b3c4d5e6f",
                      "referredInvoiceId": null,
                      "sequenceSetId": null,
                      "sourceType": "Standalone",
                      "status": "Canceled",
                      "success": true,
                      "targetDate": null,
                      "taxAmount": 0,
                      "taxMessage": null,
                      "taxStatus": "Complete",
                      "totalTaxExemptAmount": 0,
                      "transferredToAccounting": "No",
                      "updatedById": "bc0211e8ca1440eb97a0aff808f87293",
                      "updatedDate": "2023-03-27 17:43:59"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a debit memo",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/collect": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nThis API operation provides an easy way to let the client-side to collect an existing posted debit memo.\nIt supports the following steps:\n  1. Apply unapplied credit memos to the posted debit memo by Oldest-First-Largest-First rule if there are more than one unapplied credit memos.\n  2. Apply unapplied payments to the posted debit memo by Oldest-First-Largest-First rule if there are more than one unapplied payments.\n  3. Process payment to the posted debit memo if there is an open-balance on it.\n\n**Restrictions**\n\nSince this API will do lots of works, and some of them are resource consuming, we need to restrict the usage of this API by the following conditions:\n  1. If the target debit memo gets more than 10 debit memo items, the request will be rejected.\n  2. If `CreditMemo` is specified in `applicationOrder`, when there are more than 25 credit memos will be used to apply to the debit memo, the request will be rejected.\n  3. If `CreditMemo` is specified in `applicationOrder`, when there are more than 100 credit memo items will be used to apply to the debit memo, the request will be rejected.\n  4. If `UnappliedPayment` is specified in `applicationOrder`, when there are more than 25 payments will be used to apply to the debit memo, the request will be rejected.\n",
        "operationId": "POST_DebitMemoCollect",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of a posted debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DebitMemoCollectRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "debitMemo": {
                        "id": "8ad0912492f64b9001931936cac36351",
                        "number": "DM00000001"
                      },
                      "appliedCreditMemos": [],
                      "appliedPayments": [],
                      "processedPayment": {
                        "id": "8ad0869992f632860193249dfe1a0ead",
                        "number": "P-00001541",
                        "status": "Processed",
                        "amount": 10,
                        "paymentMethodId": "8ad09bce83f1da020183f97e24821c4b",
                        "gatewayId": "8ad095dd813e750f0181461a8e350ce7",
                        "gatewayResponse": "This transaction has been approved by the gateway.",
                        "gatewayResponseCode": "approve"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/DebitMemoCollectResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Collect a posted debit memo",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/emails": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nSends a posted debit memo to the specified email addresses manually.\n\n\n\n### Notes\n  - You must activate the **Email Debit Memo | Manually email Debit Memo** notification before emailing debit memos. To include the debit memo PDF in the email, select the **Include Debit Memo PDF** check box in the **Edit notification** dialog from the Zuora UI. See [Create and Edit Notifications](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/C_Create_Notifications#section_2) for more information.\n\n\n  - Zuora sends the email messages based on the email template you set. You can set the email template to use in the **Delivery Options** panel of the **Edit notification** dialog from the Zuora UI. By default, the **Manual Email for Debit Memo Default Template** template is used. See [Create and Edit Email Templates](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/Create_Email_Templates) for more information.\n\n\n  - The debit memos are sent only to the work email addresses or personal email addresses of the Bill To contact if the following conditions are all met:\n\n    * The `useEmailTemplateSetting` field is set to `false`.\n    * The email addresses are not specified in the `emailAddresses` field.\n",
        "operationId": "POST_EmailDebitMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of a posted debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostDebitMemoEmailType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Email a debit memo",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/files": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nUploads an externally generated PDF file for a debit memo that is in Draft or Posted status.\n\nTo use this operation, you must enable the Modify Debit Memo permission. See [Billing Permissions](https://knowledgecenter.zuora.com/Billing/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n\nThis operation has the following restrictions:\n- Only the PDF file format is supported.\n- The maximum size of the PDF file to upload is 4 MB.\n- A maximum of 50 PDF files can be uploaded for one debit memo.\n",
        "operationId": "POST_UploadFileForDebitMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID or number of the debit memo that you want to upload a PDF file for. For example, 402890555a87d7f5015a8919e4fe002e or DM00000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "The PDF file to upload for the debit memo.\n",
                    "format": "binary",
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "fileId": "40289f466463d683016463ef8b7301a3",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTUploadFileResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Upload a file for a debit memo",
        "tags": [
          "Debit Memos"
        ],
        "x-code-samples": [
          {
            "label": "Curl",
            "lang": "curl",
            "source": "curl -X POST -H \"Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1\" -F \"file=@DebitMemoFile.pdf\" \"https://rest.zuora.com/v1/debit-memos/402890555a87d7f5015a8919e4fe002e/files\"\n"
          }
        ]
      },
      "get": {
        "description": "Retrieves the information about all PDF files of a specified debit memo. \n\nDebit Memo PDF files are returned in reverse chronological order by the value of the `versionNumber` field.\n**Note**: This API only retrieves the PDF files that have been generated. If the latest PDF file is being generated, it will not be included in the response.\n",
        "operationId": "GET_DebitMemoFiles",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "description": "The unique ID or number of an debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "debitMemoFiles": [
                        {
                          "id": "8a90a24f8e128020018e12ebcd010470",
                          "pdfFileUrl": "/v1/files/8a90a24f8e128020018e12ebccfa046f",
                          "versionNumber": 1709714426109
                        },
                        {
                          "id": "8a90b5148c6d127b018c6d1e46160230",
                          "pdfFileUrl": "/v1/files/8a90b5148c6d127b018c6d1e4610022f",
                          "versionNumber": 1702637741618
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoFilesResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all files of a debit memo",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/items": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about all items of a debit memo. A debit memo item is a single line item in a debit memo. \n\n### Filtering\n\nYou can use query parameters to restrict the data returned in the response. Each query parameter corresponds to one field in the response body.\n\nIf the value of a filterable field is string, you can set the corresponding query parameter to `null` when filtering. Then, you can get the response data with this field value being `null`. \n\nExamples:\n\n- /v1/debit-memos/402890245c7ca371015c7cb40b28001f/items?amount=100\n\n- /v1/debit-memos/402890245c7ca371015c7cb40b28001f/items?amount=100&sort=createdDate\n",
        "operationId": "GET_DebitMemoItems",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "This parameter filters the response based on the `amount` field.\n",
            "in": "query",
            "name": "amount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `beAppliedAmount` field.\n",
            "in": "query",
            "name": "beAppliedAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdById` field.\n",
            "in": "query",
            "name": "createdById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdDate` field.\n",
            "in": "query",
            "name": "createdDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `id` field.\n",
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `serviceEndDate` field.\n",
            "in": "query",
            "name": "serviceEndDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `serviceStartDate` field.\n",
            "in": "query",
            "name": "serviceStartDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `sku` field.\n",
            "in": "query",
            "name": "sku",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `skuName` field.\n",
            "in": "query",
            "name": "skuName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `sourceItemId` field.\n",
            "in": "query",
            "name": "sourceItemId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `subscriptionId` field.\n",
            "in": "query",
            "name": "subscriptionId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedById` field.\n",
            "in": "query",
            "name": "updatedById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedDate` field.\n",
            "in": "query",
            "name": "updatedDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter restricts the order of the data returned in the response. You can use this parameter to supply a dimension you want to sort on.\n\nA sortable field uses the following form: \n\n*operator* *field_name*\n\nYou can use at most two sortable fields in one URL path. Use a comma to separate sortable fields. For example:  *operator* *field_name*, *operator* *field_name*  \n\n*operator* is used to mark the order of sequencing. The operator is optional. If you only specify the sortable field without any operator, the response data is sorted in descending order by this field.\n\n  - The `-` operator indicates an ascending order.\n  - The `+` operator indicates a descending order.\n\nBy default, the response data is displayed in descending order by updated date.\n\n*field_name* indicates the name of a sortable field. The supported sortable fields of this operation are as below:\n\n  - id\n  - amount\n  - beAppliedAmount\n  - sku\n  - skuName\n  - serviceStartDate\n  - serviceEndDate\n  - sourceItemId\n  - createdDate\n  - createdById\n  - updatedDate\n  - updatedById\n  - subscriptionId\n\n  \nExamples:\n\n- /v1/debit-memos/402890245c7ca371015c7cb40b28001f/items?sort=createdDate\n\n- /v1/debit-memos/402890245c7ca371015c7cb40b28001f/items?amount=100&sort=createdDate\n",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "items": [
                        {
                          "amount": 1,
                          "amountWithoutTax": 1,
                          "appliedToItemId": "402890555a7d4022015a2dadb3b700a6",
                          "balance": 1,
                          "beAppliedAmount": 0,
                          "comment": "This is comment!",
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 17:13:15",
                          "excludeItemBillingFromRevenueAccounting": true,
                          "financeInformation": {
                            "deferredRevenueAccountingCode": "Subscription Revenue",
                            "deferredRevenueAccountingCodeType": "SalesRevenue",
                            "recognizedRevenueAccountingCode": "Subscription Revenue",
                            "recognizedRevenueAccountingCodeType": "SalesRevenue"
                          },
                          "id": "402890555a87d7f5015a89251ede0046",
                          "processingType": "Charge",
                          "quantity": 1,
                          "serviceEndDate": "2017-11-30",
                          "serviceStartDate": "2017-11-01",
                          "sku": "SKU-00000002",
                          "skuName": "SKU-30",
                          "soldToContactId": "402881e522cf4f9b0122cf5d82860003",
                          "soldToContactSnapshotId": "402881e522cf4f9b0122cf5d82860004",
                          "sourceItemId": "402890555a7d4022015a7dadb3b700a6",
                          "sourceItemType": "InvoiceDetail",
                          "subscriptionId": null,
                          "taxMode": "TaxExclusive",
                          "taxationItems": {
                            "data": [
                              {
                                "balance": 0.01,
                                "creditAmount": 0,
                                "exemptAmount": 0,
                                "financeInformation": {
                                  "salesTaxPayableAccountingCode": "Check",
                                  "salesTaxPayableAccountingCodeType": "Cash"
                                },
                                "id": "402890555a87d7f5015a89251ef10047",
                                "jurisdiction": "CALIFORNIA",
                                "locationCode": "06",
                                "name": "STATE TAX",
                                "paymentAmount": 0,
                                "sourceTaxItemId": "402890555a7d4022015a7dadb39b00a1",
                                "taxAmount": 0.01,
                                "taxCode": "ZtaxCode",
                                "taxCodeDescription": "",
                                "taxDate": "2017-11-30",
                                "taxRate": 0.0625,
                                "taxRateDescription": "This is tax rate description!",
                                "taxRateType": "Percentage"
                              }
                            ]
                          },
                          "unitOfMeasure": "Each",
                          "unitPrice": 1,
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 17:13:15"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoItemCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List debit memo items",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/items/{dmitemid}": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nRetrieves information about a specific item of a debit memo. A debit memo item is a single line item in a debit memo.\n",
        "operationId": "GET_DebitMemoItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a debit memo item. You can get the debit memo item ID from the response of [List debit memo items](https://developer.zuora.com/api-references/api/operation/GET_DebitMemoItems).\n",
            "in": "path",
            "name": "dmitemid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amount": 1,
                      "amountWithoutTax": 1,
                      "appliedToItemId": "402890555a7d4022015a2dadb3b700a6",
                      "balance": 1,
                      "beAppliedAmount": 0,
                      "comment": "aa",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 17:01:00",
                      "excludeItemBillingFromRevenueAccounting": true,
                      "financeInformation": {
                        "deferredRevenueAccountingCode": "Subscription Revenue",
                        "deferredRevenueAccountingCodeType": "SalesRevenue",
                        "recognizedRevenueAccountingCode": "Subscription Revenue",
                        "recognizedRevenueAccountingCodeType": "SalesRevenue"
                      },
                      "id": "402890555a87d7f5015a8919e500002f",
                      "processingType": "Charge",
                      "quantity": 1,
                      "serviceEndDate": "2017-03-26",
                      "serviceStartDate": "2017-02-27",
                      "sku": "SKU-00000002",
                      "skuName": "ZTax Component",
                      "soldToContactId": "402881e522cf4f9b0122cf5d82860003",
                      "soldToContactSnapshotId": "402881e522cf4f9b0122cf5d82860004",
                      "sourceItemId": "402890555a7d4022015a7dadb3b700a6",
                      "sourceItemType": "InvoiceDetail",
                      "subscriptionId": null,
                      "success": true,
                      "taxMode": "TaxExclusive",
                      "taxationItems": {
                        "data": [
                          {
                            "balance": 5,
                            "creditAmount": 0,
                            "exemptAmount": 0,
                            "financeInformation": {
                              "salesTaxPayableAccountingCode": "Check",
                              "salesTaxPayableAccountingCodeType": "Cash"
                            },
                            "id": "402890555a87d7f5015a8919e8450031",
                            "jurisdiction": "USA",
                            "locationCode": "",
                            "name": "my tax",
                            "paymentAmount": 0,
                            "sourceTaxItemId": "402890555a7d4022015a7dadb39b00a1",
                            "taxAmount": 5,
                            "taxCode": "ZtaxCode",
                            "taxCodeDescription": "",
                            "taxDate": "2017-02-27",
                            "taxRate": 5,
                            "taxRateDescription": "desc3",
                            "taxRateType": "FlatFee"
                          }
                        ]
                      },
                      "unitOfMeasure": "Each",
                      "unitPrice": 1,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 17:01:00"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoItemType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a debit memo item",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/pdfs": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nCreates a PDF file for a specified debit memo. To access the generated PDF file, you can download it by clicking **View PDF** on the detailed debit memo page through the Zuora UI.\n\nThis REST API operation can be used only if you have the billing document file generation feature and the Billing user permission \"Regenerate PDF\" enabled.\n",
        "operationId": "POST_DebitMemoPDF",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the debit memo that you want to create a PDF file for. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTMemoPdfResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Generate a debit memo PDF file",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/post": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nPosts a debit memo to activate it. You can post debit memos only if you have the [Billing permissions](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles#Billing_Permissions).\n",
        "operationId": "PUT_PostDebitMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028ab1f87121698018722fa86dc4823",
                      "accountNumber": "AN_Test11679919056161",
                      "amount": 100,
                      "autoPay": true,
                      "balance": 100,
                      "beAppliedAmount": 0,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "cancelledById": null,
                      "cancelledOn": null,
                      "comment": "This is a comment",
                      "createdById": "e758a64e80f54439913241f9aa537127",
                      "createdDate": "2023-03-27 17:40:58",
                      "currency": "USD",
                      "debitMemoDate": "2023-03-27",
                      "dueDate": "2023-03-27",
                      "einvoiceErrorCode": null,
                      "einvoiceErrorMessage": null,
                      "einvoiceFileId": null,
                      "einvoiceStatus": "Processing",
                      "id": "4028ab1f87121698018722fa8d73483a",
                      "invoiceGroupNumber": "N-0001",
                      "latestPDFFileId": "ac1ebc24569sd",
                      "number": "DM00000001",
                      "organizationLabel": "MS US",
                      "paymentTerm": null,
                      "postedById": "e758a64e80f54439913241f9aa537127",
                      "postedOn": "2023-03-27 17:41:03",
                      "reasonCode": "Correcting invoice error",
                      "referredCreditMemoId": "1a2b3c4d5e6f",
                      "referredInvoiceId": null,
                      "sequenceSetId": null,
                      "sourceType": "Standalone",
                      "status": "Posted",
                      "success": true,
                      "targetDate": null,
                      "taxAmount": 0,
                      "taxMessage": null,
                      "taxStatus": "Complete",
                      "totalTaxExemptAmount": 0,
                      "transferredToAccounting": "No",
                      "updatedById": "e758a64e80f54439913241f9aa537127",
                      "updatedDate": "2023-03-27 17:41:03"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Post a debit memo",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/taxation-items": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nCreates taxation items for a debit memo.\n",
        "operationId": "POST_DM_TaxationItems",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTTaxationItemListForDMType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "taxationItems": [
                        {
                          "createdById": "8ad084a67f9c7138017fab8a8b511b5a",
                          "createdDate": "2024-11-18 11:32:56",
                          "exemptAmount": 0,
                          "id": "8ad0980c93300db701933d549f355262",
                          "memoItemId": "8ad093f793300daf01933d50a548781f",
                          "invoiceItemId": null,
                          "sourceTaxItemId": null,
                          "jurisdiction": "CALIFORNIA",
                          "locationCode": null,
                          "name": "STATE TAX",
                          "taxAmount": 0.5,
                          "applicableTaxUnRounded": 0.5,
                          "country": null,
                          "taxCode": "ServiceTaxCode",
                          "taxCodeDescription": null,
                          "taxDate": "2024-11-18",
                          "taxRate": 0.05,
                          "taxMode": "TaxExclusive",
                          "taxRateDescription": null,
                          "taxRateType": "Percentage",
                          "updatedById": "8ad084a67f9c7138017fab8a8b511b5a",
                          "updatedDate": "2024-11-18 11:32:56",
                          "financeInformation": {
                            "onAccountAccountingCode": null,
                            "onAccountAccountingCodeType": null,
                            "salesTaxPayableAccountingCode": "Sales Tax Payable",
                            "salesTaxPayableAccountingCodeType": "SalesTaxPayable",
                            "accountsReceivableAccountingCode": "Accounts Receivable",
                            "accountsReceivableAccountingCodeType": "AccountsReceivable"
                          }
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETTaxationItemListType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create taxation items for a debit memo",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/unpost": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nUnposts a debit memo that is in Posted status. If any credit memo or payment has been applied to a debit memo, you are not allowed to unpost the debit memo. After a debit memo is unposted, its status becomes Draft.\n\nYou can unpost debit memos only if you have the [Billing permissions](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles#Billing_Permissions). \n\nYou can prevent  an unpost operation by configuring the  'Do not allow unposting invoices and memos if their revenue is already recognized in a closed accounting period' accounting  rule. The default value of this rule is set to 'disabled.' \n\n For more information,  see [Configure Accounting Rules](https://knowledgecenter.zuora.com/Zuora_Payments/Zuora_Finance/D_Finance_Settings/D_Configure_Accounting_Rules#Do_not_allow_unposting_invoices_and_memos_if_their_revenue_is_already_recognized_in_a_closed_accounting_period).",
        "operationId": "PUT_UnpostDebitMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a debit memo. For example, 8a8082e65b27f6c3015ba419f3c2644e or DM00000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028ab1f87121698018722f3af193744",
                      "accountNumber": "AN_Test11679918607694",
                      "amount": 100,
                      "autoPay": true,
                      "balance": 100,
                      "beAppliedAmount": 0,
                      "billToContactId": null,
                      "billToContactSnapshotId": null,
                      "cancelledById": null,
                      "cancelledOn": null,
                      "comment": "This is a comment",
                      "createdById": "c24f12918d5b45d0b7f9da297b8b7a9d",
                      "createdDate": "2023-03-27 17:33:29",
                      "currency": "USD",
                      "debitMemoDate": "2023-03-27",
                      "dueDate": "2023-03-27",
                      "einvoiceErrorCode": null,
                      "einvoiceErrorMessage": null,
                      "einvoiceFileId": null,
                      "einvoiceStatus": "Processing",
                      "id": "4028ab1f87121698018722f3b60c375b",
                      "invoiceGroupNumber": "N-0001",
                      "latestPDFFileId": "4028ab1f87121698018722f3bb0b376b",
                      "number": "DM00000001",
                      "organizationLabel": "MS US",
                      "paymentTerm": null,
                      "postedById": null,
                      "postedOn": null,
                      "reasonCode": "Correcting invoice error",
                      "referredCreditMemoId": "1a2b3c4d5e6f",
                      "referredInvoiceId": null,
                      "sequenceSetId": null,
                      "sourceType": "Standalone",
                      "status": "Draft",
                      "success": true,
                      "targetDate": null,
                      "taxAmount": 0,
                      "taxMessage": null,
                      "taxStatus": "Complete",
                      "totalTaxExemptAmount": 0,
                      "transferredToAccounting": "No",
                      "updatedById": "c24f12918d5b45d0b7f9da297b8b7a9d",
                      "updatedDate": "2023-03-27 17:33:42"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Unpost a debit memo",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/invoice/{invoiceKey}": {
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nCreates an ad-hoc debit memo from an invoice.\n\nYou can create a debit memo from an invoice only if you have the user permission. See [Billing Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/d_Billing_Roles) for more information.\n",
        "operationId": "POST_DebitMemoFromInvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of an invoice that you want to create a debit memo from. For example, 2c93808457d787030157e030d10f3f64 or INV00000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DebitMemoFromInvoiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8a90a19d9310bb3c0193197cb4700501",
                      "number": "DM00000045",
                      "accountId": "8a90b4488e7d5c0f018e7db3892400b2",
                      "accountNumber": "A00000370",
                      "debitMemoDate": "2024-11-11",
                      "currency": "USD",
                      "targetDate": null,
                      "dueDate": "2024-12-11",
                      "postedOn": null,
                      "postedById": null,
                      "status": "Draft",
                      "amount": 10,
                      "taxAmount": 0,
                      "totalTaxExemptAmount": 0,
                      "balance": 10,
                      "beAppliedAmount": 0,
                      "autoPay": true,
                      "comment": null,
                      "referredInvoiceId": "8a90cc5c9301541f01930186636b1400",
                      "transferredToAccounting": false,
                      "reasonCode": "Correcting invoice error",
                      "createdDate": "2024-11-11 12:30:23",
                      "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "updatedDate": "2024-11-11 12:30:23",
                      "updatedById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "cancelledOn": null,
                      "cancelledById": null,
                      "referredCreditMemoId": null,
                      "latestPDFFileId": null,
                      "taxStatus": null,
                      "sourceType": "Invoice",
                      "taxMessage": null,
                      "billToContactId": "8a90b4488e7d5c0f018e7db3896100b4",
                      "billToContactSnapshotId": null,
                      "soldToContactId": null,
                      "soldToContactSnapshotId": null,
                      "paymentTerm": "Net 30",
                      "eInvoiceStatus": null,
                      "eInvoiceErrorCode": null,
                      "eInvoiceErrorMessage": null,
                      "eInvoiceFileId": null,
                      "sequenceSetId": "acd16fac492111e9a0d70cc47a32b062",
                      "invoiceGroupNumber": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a debit memo from an invoice",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/write-off": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nWrites off a debit memo. \n\nBy writing off a debit memo,  a credit memo is automatically created and applied to the debit memo. The generated  credit memo items and credit memo taxation items are applied to the corresponding  debit memo items and debit memo taxation items respectively.\n\n**Note**: \n* This API operation  is available only if you have enabled the enhanced write-off permission for your tenant.  Contact <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a>  to enable this permission.\n* The total amount must be equal to the amount entered at the invoice item level.\n* If the non revenue impact value  is set to Yes, then the non revenue write off accounting code must be specified.\n",
        "operationId": "PUT_WriteOffDebitMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTWriteOffDebitMemoRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "creditMemo": {
                        "id": "402890555a40ca7f015a5b099b0e307a"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTWriteOffDebitMemoResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Write off a debit memo",
        "tags": [
          "Debit Memos"
        ]
      }
    },
    "/v1/einvoice/service-providers": {
      "get": {
        "description": "Lists information about e-invoicing service providers.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "GET_EInvoicingServiceProviders",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "serviceProviders": [
                        {
                          "id": "4028948972a2bf990172bc9b27724eef",
                          "name": "Sovos e-invoice service",
                          "provider": "Sovos",
                          "serviceProviderNumber": "EISP-00000001",
                          "test": "false",
                          "companyIdentifier": "CompanySample1"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ListEInvoicingServiceProvidersResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List e-invoicing service providers",
        "tags": [
          "E-Invoicing"
        ]
      },
      "post": {
        "description": "Creates an e-invoicing service provider.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "POST_EInvoicingServiceProvider",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEInvoicingServiceProviderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "4028948972a2bf990172bc9b27724eef",
                      "name": "Sovos e-invoice service",
                      "provider": "Sovos",
                      "serviceProviderNumber": "EISP-00000001",
                      "test": "false",
                      "companyIdentifier": "CompanySample1",
                      "apiKey": "SampleApiKey",
                      "use_certificate": false,
                      "clientCertificate": "U3dhZ2dlciByb2Nrcw==",
                      "clientCertificateType": "PKCS12"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetEInvoicingServiceProviderResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an e-invoicing service provider",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/einvoice/service-providers/{key}": {
      "delete": {
        "description": "Deletes an e-invoicing service privider.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "DELETE_EInvoicingServiceProvider",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the e-invoicing service provider that you want to \n",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an e-invoicing service provider",
        "tags": [
          "E-Invoicing"
        ]
      },
      "get": {
        "description": "Retrieves information about an e-invoicing service privider.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "GET_EInvoicingServiceProvider",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the e-invoicing service provider that you want to retrieve information about.\n",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "4028948972a2bf990172bc9b27724eef",
                      "name": "Sovos e-invoice service",
                      "provider": "Sovos",
                      "serviceProviderNumber": "EISP-00000001",
                      "test": "false",
                      "companyIdentifier": "CompanySample1"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetEInvoicingServiceProviderResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an e-invoicing service provider",
        "tags": [
          "E-Invoicing"
        ]
      },
      "put": {
        "description": "Updates information about an e-invoicing service privider.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "PUT_UpdateEInvoicingServiceProvider",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the e-invoicing service provider that you want to update.\n",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEInvoicingServiceProviderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "4028948972a2bf990172bc9b27724eef",
                      "name": "Sovos e-invoice service",
                      "provider": "Sovos",
                      "serviceProviderNumber": "EISP-00000001",
                      "test": "true",
                      "companyIdentifier": "CompanySample1",
                      "apiKey": "SampleApiKey",
                      "use_certificate": false,
                      "clientCertificate": "U3dhZ2dlciByb2Nrcw==",
                      "clientCertificateType": "PKCS12"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetEInvoicingServiceProviderResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an e-invoicing service provider",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/einvoice/business-regions": {
      "get": {
        "description": "Lists information about e-invoicing business regions.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "GET_EInvoicingBusinessRegions",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "regions": [
                        {
                          "id": "8ad083528ee62fe1018eea6c5dd11e01",
                          "country": "AU",
                          "businessName": "Avalara Inc.",
                          "businessNumber": "74004085818",
                          "businessNumberSchemeId": "0151",
                          "tradeName": "Test trade",
                          "endpointId": "74004085818",
                          "endpointSchemeId": "0151",
                          "taxRegisterNumber": "1577240348",
                          "state": "",
                          "city": "",
                          "postalCode": "",
                          "addressLine1": "",
                          "addressLine2": "",
                          "contactName": "",
                          "phoneNumber": "",
                          "email": "",
                          "serviceProviderId": "8ad093788ea359ca018ea75fb12a6348",
                          "businessRegionNumber": "EIBR-00000010",
                          "digitalSignatureEnable": "false",
                          "digitalSignatureBoxEnable": "false",
                          "digitalSignatureBoxPosX": "0",
                          "digitalSignatureBoxPosY": "0",
                          "responseMapping": "{}",
                          "processType": "PEPPOLNetwork",
                          "invoiceEnabled": "true",
                          "creditMemoEnabled": "true",
                          "debitMemoEnabled": "true",
                          "invoiceFilters": "null",
                          "creditMemoFilters": "null",
                          "debitMemoFilters": "null",
                          "fileFormat": {
                            "B2B": [
                              "XML"
                            ],
                            "B2C": [
                              ""
                            ],
                            "B2G": [
                              "XML"
                            ]
                          }
                        },
                        {
                          "id": "8ad081dd8f7c5447018f7fdff3a75823",
                          "country": "BR",
                          "businessName": "Seller business name",
                          "businessNumber": "02593165000140",
                          "businessNumberSchemeId": "",
                          "tradeName": "Seller trade name",
                          "endpointId": "Seller end point id 08992",
                          "endpointSchemeId": "099",
                          "taxRegisterNumber": "TAX393982838",
                          "state": "",
                          "city": "",
                          "postalCode": "1",
                          "addressLine1": "",
                          "addressLine2": "",
                          "contactName": "",
                          "phoneNumber": "",
                          "email": "",
                          "serviceProviderId": "8ad097b4905a5adf01907433df216e37",
                          "businessRegionNumber": "EIBR-00000012",
                          "digitalSignatureEnable": false,
                          "digitalSignatureBoxEnable": false,
                          "digitalSignatureBoxPosX": 0,
                          "digitalSignatureBoxPosY": 0,
                          "responseMapping": {},
                          "processType": "ClearanceWithCancellation",
                          "invoiceEnabled": true,
                          "creditMemoEnabled": false,
                          "debitMemoEnabled": false,
                          "invoiceFilters": null,
                          "creditMemoFilters": null,
                          "debitMemoFilters": null,
                          "fileFormat": null
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ListEInvoicingBusinessRegionsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List e-invoicing business regions",
        "tags": [
          "E-Invoicing"
        ]
      },
      "post": {
        "description": "Creates an e-invoicing business region.\n\nYou must create business regions to store the business detail information as a seller. If you have multiple GSTINs for different states, you can create multiple business region objects for India.\n\nThe business region objects can be looked up according to the country and state, and its related fields can be mapped accordingly within the e-invoice file template.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "POST_CreateEInvoicingBusinessRegion",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEInvoicingBusinessRegionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "addressLine1": "",
                      "addressLine2": "",
                      "businessName": "legal business name",
                      "businessNumber": "20002039",
                      "businessNumberSchemaId": "88",
                      "businessRegionNumber": "EIBR-00000002",
                      "city": "Tokyo",
                      "contactName": "",
                      "country": "JP",
                      "digitalSignatureEnable": false,
                      "digitalSignatureBoxEnable": false,
                      "digitalSignatureBoxPosX": 0,
                      "digitalSignatureBoxPosY": 0,
                      "email": "",
                      "id": "4028b2aa8890c524018890c7e9ef3826",
                      "invoiceFilters": [
                        {
                          "objectType": "Invoice",
                          "condition": {
                            "field": "SoldToContact.Country",
                            "operator": "eq",
                            "value": "India"
                          }
                        }
                      ],
                      "phoneNumber": "",
                      "postalCode": "368779",
                      "responseMapping": {},
                      "serviceProviderId": "4028948972a2bf990172bc9b27724ddc",
                      "state": "",
                      "taxRegisterNumber": "TAX393999",
                      "tradeName": "Zuora",
                      "fileFormat": {
                        "B2B": [
                          "XML"
                        ],
                        "B2C": [
                          ""
                        ],
                        "B2G": [
                          "XML"
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetEInvoicingBusinessRegionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an e-invoicing business region",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/einvoice/business-regions/{key}": {
      "delete": {
        "description": "Deletes an e-invoicing business region by key. The key can be the unique ID or number of an e-invoicing business region.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "DELETE_EInvoicingBusinessRegion",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unqiue ID or number of the e-invoicing business region that you want to delete.\n",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an e-invoicing business region",
        "tags": [
          "E-Invoicing"
        ]
      },
      "get": {
        "description": "Retrieves information about an e-invoicing business region.\n\nYou can search for an e-invoicing business region by key. The key can be the unique ID or number of an e-invoicing business region.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "GET_EInvoicingBusinessRegion",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unqiue ID or number of the e-invoicing business region that you want to retrieve information about.\n",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": [
                      {
                        "id": "8ad083528ee62fe1018eea6c5dd11e01",
                        "country": "AU",
                        "businessName": "Avalara Inc.",
                        "businessNumber": "74004085818",
                        "businessNumberSchemeId": "0151",
                        "tradeName": "Test trade",
                        "endpointId": "74004085818",
                        "endpointSchemeId": "0151",
                        "taxRegisterNumber": "1577240348",
                        "state": "",
                        "city": "",
                        "postalCode": "",
                        "addressLine1": "",
                        "addressLine2": "",
                        "contactName": "",
                        "phoneNumber": "",
                        "email": "",
                        "serviceProviderId": "8ad093788ea359ca018ea75fb12a6348",
                        "businessRegionNumber": "EIBR-00000010",
                        "digitalSignatureEnable": "false",
                        "digitalSignatureBoxEnable": "false",
                        "digitalSignatureBoxPosX": "0",
                        "digitalSignatureBoxPosY": "0",
                        "responseMapping": "{}",
                        "processType": "PEPPOLNetwork",
                        "invoiceEnabled": "true",
                        "creditMemoEnabled": "true",
                        "debitMemoEnabled": "true",
                        "invoiceFilters": "null",
                        "creditMemoFilters": "null",
                        "debitMemoFilters": "null",
                        "fileFormat": {
                          "B2B": [
                            "XML"
                          ],
                          "B2C": [
                            ""
                          ],
                          "B2G": [
                            "XML"
                          ]
                        }
                      }
                    ]
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetEInvoicingBusinessRegionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an e-invoicing business region",
        "tags": [
          "E-Invoicing"
        ]
      },
      "put": {
        "description": "Updates an e-invoicing business region by key. The key can be the unique ID or number of an e-invoicing business region.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled. \n",
        "operationId": "PUT_UpdateEInvoicingBusinessRegion",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unqiue ID or number of the e-invoicing business region that you want to update.\n",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEInvoicingBusinessRegionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "addressLine1": null,
                      "addressLine2": null,
                      "businessName": "legal business name",
                      "businessNumber": "20002039",
                      "businessNumberSchemaId": "88",
                      "businessRegionNumber": "EIBR-00000002",
                      "city": "Tokyo",
                      "contactName": null,
                      "country": "JP",
                      "digitalSignatureEnable": false,
                      "digitalSignatureBoxEnable": false,
                      "digitalSignatureBoxPosX": 0,
                      "digitalSignatureBoxPosY": 0,
                      "email": null,
                      "endpointId": "8992",
                      "endpointSchemeId": "88",
                      "phoneNumber": null,
                      "postalCode": "368779",
                      "responseMapping": {},
                      "serviceProviderId": "4028948972a2bf990172bc9b27724ddc",
                      "state": null,
                      "taxRegisterNumber": "TAX393999",
                      "tradeName": "Zuora",
                      "fileFormat": {
                        "B2B": [
                          "XML"
                        ],
                        "B2C": [
                          ""
                        ],
                        "B2G": [
                          "XML"
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetEInvoicingBusinessRegionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an e-invoicing business region",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/e-invoice/mandates": {
      "get": {
        "description": "Fetches mandates for downloading files based on the country code, category, and process type selection. \nThis API operation returns the the list of file formats in which the document can be downloaded.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\ntarget=\"_blank\">E-Invoicing</a> feature for Avalara in **Early Availabiltiy** phase enabled.\n",
        "operationId": "getEinvoiceMandates",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "2-digit country code.\n",
            "in": "query",
            "name": "countryCode",
            "schema": {
              "type": "string",
              "example": "AU"
            }
          },
          {
            "description": "The process type of the e-invoicing business region.\n- If the service provider is Sovos, the process type is `Clearance` or `ClearanceWithCancellation`.\n- If the service provider is Avalara, the process type is `Clearance` or `PEPPOLNetwork`.\n- If the service provider is PEPPOL, the process type is `Unknown`.\n",
            "in": "query",
            "name": "processType",
            "schema": {
              "type": "string",
              "example": "PEPPOLNetwork",
              "enum": [
                "Clearance",
                "ClearanceWithCancellation",
                "PEPPOLNetwork",
                "Unknown"
              ]
            }
          },
          {
            "description": "The service provider that is associated with the country and process type.",
            "in": "query",
            "name": "provider",
            "schema": {
              "type": "string",
              "example": "8ad093788ea359ca018ea75fb12a6348"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": {
                      "data": [
                        {
                          "countryCode": "AU",
                          "fileFormats": [
                            "OASIS_UBL_XML",
                            "XML"
                          ],
                          "category": "B2B",
                          "processType": "PEPPOLNetwork",
                          "defaultFileFormats": "null"
                        },
                        {
                          "countryCode": "AU",
                          "fileFormats": [
                            "OASIS_UBL_XML",
                            "XML"
                          ],
                          "category": "B2G",
                          "processType": "PEPPOLNetwork",
                          "defaultFileFormats": "null"
                        }
                      ],
                      "success": true
                    }
                  },
                  "Validation Error#1": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "Mandate details are available only if Avalara is Integrated as service provider"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/EinvoiceFetchMandates"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List mandates for downloading files",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/e-invoice/mandate": {
      "get": {
        "description": "Fetches mandates for downloading e-invoice based on the country code, category, and process type selection. \n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\ntarget=\"_blank\">E-Invoicing</a> feature for Avalara in **Early Availabiltiy** phase enabled.\n",
        "operationId": "getEinvoiceMandateOnInvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique number or ID of the invoice.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": {
                      "countryCode": "AU",
                      "fileFormats": [
                        "XML",
                        "OASIS_UBL_XM"
                      ],
                      "category": "B2G",
                      "defaultFileFormats": [
                        "XML"
                      ],
                      "processType": "PEPPOLNetwork",
                      "success": true
                    }
                  },
                  "Validation Error#1": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "E-Invoice for the document [<document-key>] is not submitted to Avalara and hence this request cannot be accepted"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/EinvoiceInvoiceFetchMandate"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a mandate for downloading a file",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/e-invoice/mandate": {
      "get": {
        "description": "Fetches mandates for downloading a Credit Memo file based on the country code, category, and process type selection. \n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\ntarget=\"_blank\">E-Invoicing</a> feature for Avalara in **Early Availabiltiy** phase enabled.\n",
        "operationId": "getEinvoiceCreditMemoMandate",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique number or ID of the Credit Memo.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": {
                      "countryCode": "AU",
                      "fileFormats": [
                        "XML",
                        "OASIS_UBL_XML"
                      ],
                      "category": "B2G",
                      "defaultFileFormats": [
                        "XML"
                      ],
                      "processType": "PEPPOLNetwork",
                      "success": true
                    }
                  },
                  "Validation Error#1": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "E-Invoice for the document [<document-key>] is not submitted to Avalara and hence this request cannot be accepted"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CreditMemosEinvoiceMandate"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a mandate for downloading a credit memo",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/e-invoice/mandate": {
      "get": {
        "description": "Fetches mandates for downloading a Debit Memo file based on the country code, category, and process type selection. \n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\"\ntarget=\"_blank\">E-Invoicing</a> feature for Avalara in **Early Availabiltiy** phase enabled.\n",
        "operationId": "getEinvoiceDebitMemoMandate",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique number or ID of the Debit Memo.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": {
                      "countryCode": "AU",
                      "fileFormats": [
                        "XML",
                        "OASIS_UBL_XML"
                      ],
                      "category": "B2G",
                      "defaultFileFormats": [
                        "XML"
                      ],
                      "processType": "PEPPOLNetwork",
                      "success": true
                    }
                  },
                  "Validation Error#1": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "E-Invoice for the document [<document-key>] is not submitted to Avalara and hence this request cannot be accepted"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/DebitMemosEinvoiceMandate"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a mandate for downloading a debit memo",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/e-invoice/download": {
      "get": {
        "description": "Downloads the e-invoice based on the selected file format. \nThe system supports XML, UBL, PNG, or QR codes formats that each country requires or supports.  \n",
        "operationId": "downloadEinvoiceOfSpecifiedFormat",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "This parameter is exclusively accessible for documents submitted via the Avalara E-Invoice integration. \nWhen an invoice is processed through Sovos or PEPPOL, this parameter cannot be specified, and the document can only be downloaded in its default file format.\n \nFollowing mapping will be used for user representation of file formats:\n\n  - XML: `application/xml`\n  - PDF: `application/pdf` \n  - ZIP: `application/zip` \n  - OASIS_Universal_Business_Language_XML: `application/vnd.oasis.ubl+xml`  \n",
            "in": "query",
            "name": "fileFormat",
            "schema": {
              "type": "string",
              "enum": [
                "XML",
                "PDF",
                "ZIP",
                "OASIS_Universal_Business_Language_XML"
              ]
            }
          },
          {
            "description": "The unique number or ID of the e-invoice.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": {}
                  },
                  "Validation Error#1": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "File Format 'application/pdf' is not supported by Avalara for the document [<document-number>]. Supported values are [application/vnd.oasis.ubl+xml, application/xml]"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  },
                  "Validation Error#2": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "File download operation is supported only if the E-Invoice status is Success"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  },
                  "Validation Error#3": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "Avalara Service is down at the moment. Please try again later"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/EinvoiceDownload"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Download a file in the specified file format",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/e-invoice/download": {
      "get": {
        "description": "Downloads the credit memo based on the specified file format. \nThe system supports XML, UBL, PNG, or QR codes formats that each country requires or supports. \n",
        "operationId": "downloadCreditMemoEinvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "This parameter is exclusively accessible for documents submitted via the Avalara E-Invoice integration. \nWhen an invoice is processed through Sovos or PEPPOL, this parameter cannot be specified, and the document can only be downloaded in its default file format.\n\nFollowing mapping will be used for user representation of file formats:\n\n  - XML: `application/xml`\n  - PDF: `application/pdf`    \n  - ZIP: `application/zip` \n  - OASIS_Universal_Business_Language_XML: `application/vnd.oasis.ubl+xml`  \n",
            "in": "query",
            "name": "fileFormat",
            "schema": {
              "type": "string",
              "enum": [
                "XML",
                "PDF",
                "ZIP",
                "OASIS_Universal_Business_Language_XML"
              ]
            }
          },
          {
            "description": "The unique number or ID of Credit Memo.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": {}
                  },
                  "Validation Error#1": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "File Format 'application/pdf' is not supported by Avalara for the document [<document-number>]. Supported values are [application/vnd.oasis.ubl+xml, application/xml]"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  },
                  "Validation Error#2": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "File download operation is supported only if the E-Invoice status is Success"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  },
                  "Validation Error#3": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "Avalara Service is down at the moment. Please try again later"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CreditMemosEinvoiceDownload"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Download a credit memo in the specified file format",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/e-invoice/download": {
      "get": {
        "description": "Downloads the debit memo based on the specified file format. \nThe system supports XML, UBL, PNG, or QR codes formats that each country requires or supports. \n",
        "operationId": "downloadDebitMemoEinvoice",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "This parameter is exclusively accessible for documents submitted via the Avalara E-Invoice integration. \nWhen an invoice is processed through Sovos or PEPPOL, this parameter cannot be specified, and the document can only be downloaded in its default file format.\n\nFollowing mapping will be used for user representation of file formats:\n\n  - XML: `application/xml`\n  - PDF: `application/pdf` \n  - ZIP: `application/zip` \n  - OASIS_Universal_Business_Language_XML: `application/vnd.oasis.ubl+xml`  \n",
            "in": "query",
            "name": "fileFormat",
            "schema": {
              "type": "string",
              "enum": [
                "XML",
                "PDF",
                "ZIP",
                "OASIS_Universal_Business_Language_XML"
              ]
            }
          },
          {
            "description": "The unique number or ID of Debit Memo.",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": {}
                  },
                  "Validation Error#1": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "File Format 'application/pdf' is not supported by Avalara for the document [<document-number>]. Supported values are [application/vnd.oasis.ubl+xml, application/xml]"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  },
                  "Validation Error#2": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "File download operation is supported only if the E-Invoice status is Success"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  },
                  "Validation Error#3": {
                    "value": {
                      "success": false,
                      "processId": "A214477BE49D98ED",
                      "reasons": {
                        "code": "50000020",
                        "message": "Avalara Service is down at the moment. Please try again later"
                      },
                      "requestId": "0e9c4ba6-a118-4f64-90df-23f7ce3d004c"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/DebitMemosEinvoiceDownload"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Download a debit memo in the specified file format",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/e-invoice/cancel": {
      "put": {
        "description": "Cancels the E-Invoice for the given billing document",
        "operationId": "cancelEInvoiceByInvoiceKey",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Authorization_OAuth_optional"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "Invoice Id or Number",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutCancelEInvoiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel the e-invoice file for an invoice",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/einvoice/templates": {
      "get": {
        "description": "Lists information about e-invoice file templates.\n\nYou can query e-invoice file templates by conditions. For example, if your service provider is Sovos, you can use the following example URL to retrieve information about a list of e-invoice file templates for invoices in India:\n`/v1/einvoice/templates?country=IN&documentType=Invoice&provider=Sovos`\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "GET_EInvoiceFileTemplates",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The short name of a country or region where you must comply with e-invoicing requirements. For example, `IN` for India. For the full list of country names and codes, see <a href=\"https://knowledgecenter.zuora.com/Quick_References/Country%2C_State%2C_and_Province_Codes/A_Manage_countries_and_regions#View_countries_or_regions\" target=\"_blank\">View countries or regions</a>.\n",
            "in": "query",
            "name": "country",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The type of billing documents for which the e-invoice file template is intended.\n",
            "in": "query",
            "name": "documentType",
            "required": true,
            "schema": {
              "enum": [
                "Invoice",
                "CreditMemo",
                "DebitMemo"
              ],
              "type": "string"
            }
          },
          {
            "description": "The name of the e-invoicing service provider that assists in generating e-invoice files. \n",
            "in": "query",
            "name": "provider",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "templates": [
                        {
                          "country": "SA",
                          "documentType": "Invoice",
                          "id": "402833ec89d46b390189d51402d937b0",
                          "name": "EInvoice Template Name",
                          "provider": "Sovos",
                          "templateNumber": "EITEMP-00000006"
                        },
                        {
                          "country": "SA",
                          "documentType": "CreditMemo",
                          "id": "402833ec89d46b390189d514030537b2",
                          "name": "EInvoice Template Name",
                          "provider": "Sovos",
                          "templateNumber": "EITEMP-00000008"
                        },
                        {
                          "country": "SA",
                          "documentType": "DebitMemo",
                          "id": "402833ec89d46b390189d514032037b4",
                          "name": "EInvoice Template Name",
                          "provider": "Sovos",
                          "templateNumber": "EITEMP-00000009"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ListEInvoiceFileTemplatesResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List e-invoice file templates",
        "tags": [
          "E-Invoicing"
        ]
      },
      "post": {
        "description": "Creates an e-invoice file templates for your billing documents, including invoices, credit memos, and debit memos. \n\nZuora provides default e-invoice file templates, so you can just customize them as needed. For example, some country specific fields like HSN (Harmonized System of Nomenclature) might be stored on product rate plan charges.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "POST_CreateEInvoiceFileTemplate",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEInvoiceFileTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "content": "base64 encoded content",
                      "country": "IN",
                      "documentType": "Invoice",
                      "id": "4028818484f483d20184f5006b97003f",
                      "name": "Sovos e-invoice service",
                      "provider": "Sovos",
                      "success": true,
                      "templateNumber": "EITEMP-00000003"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetEInvoiceFileTemplateResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an e-invoice file template",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/einvoice/templates/{key}": {
      "delete": {
        "description": "Deletes an e-invoice file template by key. The key can be the unique ID or number of an e-invoice file template.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "DELETE_EInvoiceFileTemplate",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the e-invoice file template that you want to delete.\n",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an e-invoice file template",
        "tags": [
          "E-Invoicing"
        ]
      },
      "get": {
        "description": "Retrieves information about an e-invoice file template.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "GET_EInvoiceFileTemplate",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique number or ID of the e-invoice file template that you want to retrieve information about.\n",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "content": "base64 encoded content",
                      "country": "IN",
                      "documentType": "Invoice",
                      "id": "4028818484f483d20184f5006b97003f",
                      "name": "Sovos e-invoice service",
                      "provider": "Sovos",
                      "success": true,
                      "templateNumber": "EITEMP-00000003"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetEInvoiceFileTemplateResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an e-invoice file template",
        "tags": [
          "E-Invoicing"
        ]
      },
      "put": {
        "description": "Updates information about an e-invoice file template.\n\n**Note**: This operation is available only if you have the <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-overview\" target=\"_blank\">E-Invoicing</a> feature in **Early Adopter** phase enabled.\n",
        "operationId": "PUT_EInvoiceFileTemplate",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique number or ID of the e-invoice file template that you want to update.\n",
            "in": "path",
            "name": "key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateEInvoiceFileTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "content": "base64 encoded content",
                      "country": "IN",
                      "documentType": "Invoice",
                      "id": "4028818484f483d20184f5006b97003f",
                      "name": "Sovos e-invoice service",
                      "provider": "Sovos",
                      "success": true,
                      "templateNumber": "EITEMP-00000003"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetEInvoiceFileTemplateResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an e-invoice file template",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/e-invoice/sync-status": {
      "put": {
        "description": "Initiates a background polling process to retrieve the latest notification response from the configured e-Invoicing provider and update the e-Invoice status of the e-Invoice.\n\n**Note**: This API can only be invoked when the current e-Invoice status is one of:  `Processing`, `ApprovedByAuthority`, `RetrieveTimeout`, or `Failed`. If the status is different, the request will be rejected.\n",
        "operationId": "updateInvoiceInvokeSyncStatus",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": " The e-Invoice ID or number. The system checks the latest notification response from the configured e-Invoicing provider and updates the e-Invoice status of an e-Invoice.",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "shouldIncludeAcknowledged",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "Controls how Zuora pulls e-invoice notifications from the e-invoicing service provider\nwhen resyncing the e-invoice status.\n\n- If `false` (default), Zuora refreshes only the latest notifications that have not yet been\n  acknowledged.\n- If `true`, Zuora performs a full re-sync and reprocesses all notifications from the beginning,\n  which is useful if incremental requests return incomplete results (for example, after\n  recreating notifications in Sovos).\n\n**Note:** This parameter is primarily applicable to Sovos. For other providers, Zuora may ignore this\nparameter and apply the provider’s default resync behavior.\n"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Content_Encoding"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Reset"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                    },
                    {
                      "$ref": "#/components/schemas/CommonResponse"
                    }
                  ]
                },
                "examples": {
                  "UnauthorizedExample": {
                    "value": {
                      "message": "Authentication error"
                    }
                  },
                  "PermissionErrorExample": {
                    "value": {
                      "code": 71012514,
                      "message": "User does not have permission to delete custom objects."
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is: ``` Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API ``` ",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Sync the e-Invoice status of an invoice",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/e-invoice/sync-status": {
      "put": {
        "description": "Initiates a background polling process to retrieve the latest notification response from the configured e-Invoicing provider and update the e-Invoice status of the debit memo.\n\n**Note**: This API can only be invoked when the current e-Invoice status is one of:  `Processing`, `ApprovedByAuthority`, `RetrieveTimeout`, or `Failed`. If the status is different, the request will be rejected.\n",
        "operationId": "updateDebitMemoInvokeSyncStatus",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": " The debit memo ID or number. The system checks the latest notification response from the configured e-Invoicing provider and updates the e-Invoice status of the debit memo.",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "shouldIncludeAcknowledged",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "Controls how Zuora pulls e-invoice notifications from the e-invoicing service provider\nwhen resyncing the e-invoice status.\n\n- If `false` (default), Zuora refreshes only the latest notifications that have not yet been\n  acknowledged.\n- If `true`, Zuora performs a full re-sync and reprocesses all notifications from the beginning,\n  which is useful if incremental requests return incomplete results (for example, after\n  recreating notifications in Sovos).\n\n**Note:** This parameter is primarily applicable to Sovos. For other providers, Zuora may ignore this\nparameter and apply the provider’s default resync behavior.\n"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Content_Encoding"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Reset"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                    },
                    {
                      "$ref": "#/components/schemas/CommonResponse"
                    }
                  ]
                },
                "examples": {
                  "UnauthorizedExample": {
                    "value": {
                      "message": "Authentication error"
                    }
                  },
                  "PermissionErrorExample": {
                    "value": {
                      "code": 71012514,
                      "message": "User does not have permission to delete custom objects."
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is: ``` Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API ``` ",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Sync the e-Invoice status of a debit memo",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/e-invoice/sync-status": {
      "put": {
        "description": "Initiates a background polling process to retrieve the latest notification response from the configured e-Invoicing provider and update the e-Invoice status of the credit memo.\n\n**Note**: This API can only be invoked when the current e-Invoice status is one of:  `Processing`, `ApprovedByAuthority`, `RetrieveTimeout`, or `Failed`. If the status is different, the request will be rejected.\n",
        "operationId": "updateCreditMemoInvokeSyncStatus",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": " The credit memo ID or number. The system checks the latest notification response from the configured e-Invoicing provider and updates the e-Invoice status of the credit memo.",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "shouldIncludeAcknowledged",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "Controls how Zuora pulls e-invoice notifications from the e-invoicing service provider\nwhen resyncing the e-invoice status.\n\n- If `false` (default), Zuora refreshes only the latest notifications that have not yet been\n  acknowledged.\n- If `true`, Zuora performs a full re-sync and reprocesses all notifications from the beginning,\n  which is useful if incremental requests return incomplete results (for example, after\n  recreating notifications in Sovos).\n\n**Note:** This parameter is primarily applicable to Sovos. For other providers, Zuora may ignore this\nparameter and apply the provider’s default resync behavior.\n"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Content_Encoding"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Reset"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                    },
                    {
                      "$ref": "#/components/schemas/CommonResponse"
                    }
                  ]
                },
                "examples": {
                  "UnauthorizedExample": {
                    "value": {
                      "message": "Authentication error"
                    }
                  },
                  "PermissionErrorExample": {
                    "value": {
                      "code": 71012514,
                      "message": "User does not have permission to delete custom objects."
                    }
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is: ``` Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API ``` ",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Sync the e-Invoice status of a credit memo",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/invoices/{invoiceKey}/einvoice/generate": {
      "put": {
        "description": "Generates an e-invoice file for an invoice. \nIf the invoice status is **Failed** during e-invoice generation, you can use  **Regenerate E-Invoice**. Once you fix the errors and trigger the regeneration,  the system will resubmit the document to the e-invoicing service provider,  and its status will update to **Processing**.\n\n**Note**:\n\n- <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-with-sovos\" target=\"_blank\">E-invoicing with Sovos</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-with-peppol-extract\" target=\"_blank\">E-invoicing with PEPPOL Extract</a> are generally available. \n- <a href=https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-with-avalara target=\"_blank\">E-invoicing with Avalara</a> is in the **Early Availability** phase. We are actively soliciting feedback from a small set of early availability users before releasing this feature as generally available.  If you want to join this early availability program, submit a request at <a href=\"https://zuora.zendesk.com/auth/v2/login/signin?return_to=https%3A%2F%2Fsupport.zuora.com%2Fhc%2Fen-us&theme=hc&locale=en-us&brand_id=825826&auth_origin=825826%2Ctrue%2Ctrue\" target=\"_blank\">Zuora Global Support</a>. \n\nThe **Regenerate E-Invoice** action is available in the **Generated** status for the PEPPOL service provider. \n",
        "operationId": "PUT_GenerationEInvoiceGenerationForInvoices",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the invoice. For example, 2c92c8955bd63cc1015bd7c151af02ab or INV-0000001.\n",
            "in": "path",
            "name": "invoiceKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Generate an e-invoice file for an invoice",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/credit-memos/{creditMemoKey}/e-invoice/generate": {
      "put": {
        "description": "Generates an e-invoice file for a credit memo.  If the Credit Memo status is **Failed** during e-invoice generation, you can use  **Regenerate E-Invoice**. Once you fix the errors and trigger the regeneration,  the system will resubmit the document to the e-invoicing service provider,  and its status will update to **Processing**.\n\n**Note**:\n\n- <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-with-sovos\" target=\"_blank\">E-invoicing with Sovos</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-with-peppol-extract\" target=\"_blank\">E-invoicing with PEPPOL Extract</a> are generally available. \n- <a href=https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-with-avalara target=\"_blank\">E-invoicing with Avalara</a> is in the **Early Availability** phase. We are actively soliciting feedback from a small set of early availability users before releasing this feature as generally available.  If you want to join this early availability program, submit a request at <a href=\"https://zuora.zendesk.com/auth/v2/login/signin?return_to=https%3A%2F%2Fsupport.zuora.com%2Fhc%2Fen-us&theme=hc&locale=en-us&brand_id=825826&auth_origin=825826%2Ctrue%2Ctrue\" target=\"_blank\">Zuora Global Support</a>. \n\nThe **Regenerate E-Invoice** action is available in the **Generated** status for the PEPPOL service provider. \n",
        "operationId": "PUT_GenerateEInvoiceFileForCreditMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the credit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab or CM-0000001.\n",
            "in": "path",
            "name": "creditMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Generate an e-invoice file for a credit memo",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/debit-memos/{debitMemoKey}/e-invoice/generate": {
      "put": {
        "description": "Generates an e-invoice file for a debit memo.   If the Credit Memo status is **Failed** during e-invoice generation, you can use  **Regenerate E-Invoice**. Once you fix the errors and trigger the regeneration,  the system will resubmit the document to the e-invoicing service provider,  and its status will update to **Processing**.\n\n**Note**: \n\n- <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-with-sovos\" target=\"_blank\">E-invoicing with Sovos</a> and <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-with-peppol-extract\" target=\"_blank\">E-invoicing with PEPPOL Extract</a> are generally available. \n- <a href=https://docs.zuora.com/en/zuora-billing/bill-your-customer/leverage-advanced-capabilities/e-invoicing/e-invoicing-with-avalara target=\"_blank\">E-invoicing with Avalara</a> is in the **Early Availability** phase. We are actively soliciting feedback from a small set of early availability users before releasing this feature as generally available.  If you want to join this early availability program, submit a request at <a href=\"https://zuora.zendesk.com/auth/v2/login/signin?return_to=https%3A%2F%2Fsupport.zuora.com%2Fhc%2Fen-us&theme=hc&locale=en-us&brand_id=825826&auth_origin=825826%2Ctrue%2Ctrue\" target=\"_blank\">Zuora Global Support</a>.  \n\nThe **Regenerate E-Invoice** action is available in the **Generated** status for the PEPPOL service provider.  ",
        "operationId": "PUT_GenerateEInvoiceFileForDebitMemo",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the debit memo. For example, 2c92c8955bd63cc1015bd7c151af02ab or DM-0000001.\n",
            "in": "path",
            "name": "debitMemoKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Generate an e-invoice file for a debit memo",
        "tags": [
          "E-Invoicing"
        ]
      }
    },
    "/v1/invoice-schedules": {
      "post": {
        "description": "Creates an invoice schedule.\n\n### Limitations\n\nThis API operation has the following limitations:\n\n* You can create at most 50 invoice schedule items in one request.\n\n* You can associate at most 10 orders with an invoice schedule in one request.\n\n* You can associate at most 300 subscriptions with an invoice schedule in one\nrequest, including those contained in orders and separate subscriptions.\n\n**Note**: This operation is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Schedule/Billing_Schedule_overview\" target=\"_blank\">Billing Schedule</a> feature enabled.\n",
        "operationId": "POST_CreateInvoiceSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTCreateInvoiceScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "actualAmount": 70200,
                      "additionalSubscriptionsToBill": [
                        "S-00000001",
                        "S-00000002"
                      ],
                      "billedAmount": 0,
                      "currency": "USD",
                      "id": "e2441b3e24eb42859194be7da2403b38",
                      "invoiceSeparately": false,
                      "nextRunDate": "2022-02-24",
                      "notes": "2022 Billing Schedule",
                      "number": "IS-00000004",
                      "orders": [
                        "O-00000007",
                        "O-00000008"
                      ],
                      "scheduleItems": [
                        {
                          "actualAmount": 50000,
                          "amount": 50000,
                          "id": "8a8881aa82118bec018211daf9f01680",
                          "percentage": null,
                          "runDate": "2022-02-24",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-02-24"
                        },
                        {
                          "actualAmount": 14000,
                          "amount": 14000,
                          "id": "8a8881aa82118bec018211daf9f11681",
                          "percentage": null,
                          "runDate": "2022-10-17",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-10-17"
                        },
                        {
                          "actualAmount": 6200,
                          "amount": 6200,
                          "id": "8a8881aa82118bec018211daf9f11682",
                          "percentage": null,
                          "runDate": "2022-11-14",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-11-14"
                        }
                      ],
                      "specificSubscriptions": [
                        {
                          "orderKey": "O-00000008",
                          "subscriptionKey": "S-00000008"
                        }
                      ],
                      "status": "Pending",
                      "success": true,
                      "totalAmount": 70200,
                      "unbilledAmount": 70200
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/InvoiceScheduleResponses"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an invoice schedule",
        "tags": [
          "Invoice Schedules"
        ]
      }
    },
    "/v1/invoice-schedules/{scheduleKey}": {
      "delete": {
        "description": "Deletes an invoice schedule in Pending status. The status of the invoice\nschedule to be deleted must be `Pending`.\n\n**Note**: This operation is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Schedule/Billing_Schedule_overview\" target=\"_blank\">Billing Schedule</a> feature enabled.\n",
        "operationId": "DELETE_InvoiceSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the invoice schedule to be deleted. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n",
            "in": "path",
            "name": "scheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an invoice schedule",
        "tags": [
          "Invoice Schedules"
        ]
      },
      "get": {
        "description": "Retrieves detailed information about an invoice schedule.\n\n**Note**: This operation is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Schedule/Billing_Schedule_overview\" target=\"_blank\">Billing Schedule</a> feature enabled.\n",
        "operationId": "GET_InvoiceSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The unique ID or number of the invoice schedule to be retrieved. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n",
            "in": "path",
            "name": "scheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "actualAmount": 20200,
                      "additionalSubscriptionsToBill": [
                        "S-00000001",
                        "S-00000002"
                      ],
                      "billedAmount": 50000,
                      "currency": "USD",
                      "id": "e2441b3e24eb42859194be7da2403b38",
                      "invoiceSeparately": false,
                      "nextRunDate": "2022-10-17",
                      "notes": "2022 Billing Schedule",
                      "number": "IS-00000004",
                      "orders": [
                        "O-00000007",
                        "O-00000008"
                      ],
                      "scheduleItems": [
                        {
                          "actualAmount": 0,
                          "amount": 50000,
                          "id": "8a8881aa82118bec018211daf9f01680",
                          "invoiceId": "8a8881aa82118bec018211dafc1e1695",
                          "percentage": null,
                          "runDate": "2022-02-24",
                          "status": "Processed",
                          "targetDateForAdditionalSubscriptions": "2022-02-24"
                        },
                        {
                          "actualAmount": 14000,
                          "amount": 14000,
                          "id": "8a8881aa82118bec018211daf9f11681",
                          "percentage": null,
                          "runDate": "2022-10-17",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-10-17"
                        },
                        {
                          "actualAmount": 6200,
                          "amount": 6200,
                          "id": "8a8881aa82118bec018211daf9f11682",
                          "percentage": null,
                          "runDate": "2022-11-14",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-11-14"
                        }
                      ],
                      "specificSubscriptions": [
                        {
                          "orderKey": "O-00000008",
                          "subscriptionKey": "S-00000008"
                        }
                      ],
                      "status": "PartiallyProcessed",
                      "success": true,
                      "totalAmount": 70200,
                      "unbilledAmount": 20200
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/InvoiceScheduleResponses"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an invoice schedule",
        "tags": [
          "Invoice Schedules"
        ]
      },
      "put": {
        "description": "Updates a pending invoice schedule. You can use this API operation to update invoice schedules in the following aspects:\n  - Update notes and pending invoice schedule items\n  - Update orders associated with invoice schedules\n  - Remove or add invoice schedule items\nFor more samples, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Billing_Schedule/Billing_Schedule_tutorials/Edit_invoice_schedules\" target=\"_blank\">Edit invoice schedules</a>\n\n### Restrictions and limitations\nWhen updating invoice schedules through the REST API, keep the following restrictions and limitations in mind:\n  - You can only update invoice schedule items in `Pending` status.\n  - You can only add orders or specific subscriptions to pending invoice schedules, and remove orders or specific subscriptions from pending invoice schedules.\n  - For the invoice schedule items that you want to update, you must include the new values for these items in the request.\n  - For the invoice schedule items that you want to keep unchanged, you must include all the existing information about these items in the request. Otherwise, the existing invoice schedule items that you do not include in the request are deleted.\n  - For the orders that you want to keep unchanged for an invoice schedule, you must include all the existing order numbers associated with the invoice schedule in the request. Otherwise, the existing orders that you do not include in the request are removed.\n\n**Note**: This operation is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Schedule/Billing_Schedule_overview\" target=\"_blank\">Billing Schedule</a> feature enabled.\n",
        "operationId": "PUT_UpdateInvoiceSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the invoice schedule to be updated. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n",
            "in": "path",
            "name": "scheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTUpdateInvoiceScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "actualAmount": 70200,
                      "additionalSubscriptionsToBill": [
                        "S-00000001",
                        "S-00000002"
                      ],
                      "billedAmount": 0,
                      "currency": "USD",
                      "id": "e2441b3e24eb42859194be7da2403b38",
                      "invoiceSeparately": false,
                      "nextRunDate": "2022-02-24",
                      "notes": "2022 Billing Schedule",
                      "number": "IS-00000004",
                      "orders": [
                        "O-00000007",
                        "O-00000008"
                      ],
                      "scheduleItems": [
                        {
                          "actualAmount": 54000,
                          "amount": 54000,
                          "id": "8a8881aa82118bec018211daf9f01680",
                          "percentage": null,
                          "runDate": "2022-02-24",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-02-24"
                        },
                        {
                          "actualAmount": 10000,
                          "amount": 10000,
                          "id": "8a8881aa82118bec018211daf9f11681",
                          "percentage": null,
                          "runDate": "2022-10-17",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-10-17"
                        },
                        {
                          "actualAmount": 6200,
                          "amount": 6200,
                          "id": "8a8881aa82118bec018211daf9f11682",
                          "percentage": null,
                          "runDate": "2022-11-14",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-11-14"
                        }
                      ],
                      "specificSubscriptions": [
                        {
                          "orderKey": "O-00000008",
                          "subscriptionKey": "S-00000008"
                        }
                      ],
                      "status": "Pending",
                      "success": true,
                      "totalAmount": 70200,
                      "unbilledAmount": 70200
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/InvoiceScheduleResponses"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an invoice schedule",
        "tags": [
          "Invoice Schedules"
        ]
      }
    },
    "/v1/invoice-schedules/{scheduleKey}/execute": {
      "post": {
        "description": "Executes an invoice schedule immediately. During the execution, a bill run is created and generates an invoice or a credit memo asynchronously. \n\nWhen you use this API operation to execute an invoice schedule item, you have the flexibility to decide whether to specify a specific item ID.\n- If you specify the unique ID of an invoice schedule item to be executed in the request, the corresponding invoice schedule item is executed.\n- If you do not specify the ID of any invoice schedule item in the request, the subscription end date is used as the target date to determine the next pending schedule item to be executed. \n\nA paused invoice schedule and charges inside cannot be automatically executed by Zuora Scheduler or by this \"Execute an invoice schedule\" API operation. In this case, you can do one of the following:\n- Use the <a href=\"https://developer.zuora.com/v1-api-reference/api/operation/POST_GenerateBillingDocuments/\" target=\"_blank\">Generate billing documents by account ID</a> API operation\n- Create a bill run with the target date greater than the next run date of the invoice schedule through UI or API\n\nFor more samples, see [Execute invoice schedules](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Billing_Schedule/Billing_Schedule_tutorials/Execute_invoice_schedules).\n\n**Note**: This operation is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Schedule/Billing_Schedule_overview\" target=\"_blank\">Billing Schedule</a> feature enabled.\n",
        "operationId": "POST_ExecuteInvoiceSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the schedule to be executed. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n",
            "in": "path",
            "name": "scheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTExecuteInvoiceScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecuteInvoiceScheduleBillRunResponse"
                }
              },
              "autoEmail": {
                "examples": {
                  "response": {
                    "value": false
                  }
                }
              },
              "autoPost": {
                "examples": {
                  "response": {
                    "value": false
                  }
                }
              },
              "autoRenewal": {
                "examples": {
                  "response": {
                    "value": false
                  }
                }
              },
              "billRunFilters": {
                "examples": {
                  "response": {
                    "value": [
                      {
                        "accountId": "8ad09c4b82b5c6330182c5ccab3570e6",
                        "filterType": "InvoiceSchedule"
                      }
                    ]
                  }
                }
              },
              "billRunNumber": {
                "examples": {
                  "response": {
                    "value": "BR-00001017"
                  }
                }
              },
              "createdById": {
                "examples": {
                  "response": {
                    "value": "2c92c0f84298ac5901429dea196212be"
                  }
                }
              },
              "createdDate": {
                "examples": {
                  "response": {
                    "value": "2022-08-22 06:47:18"
                  }
                }
              },
              "id": {
                "examples": {
                  "response": {
                    "value": "8ad0823f82b5b2520182c5cec5fe40fb"
                  }
                }
              },
              "invoiceDate": {
                "examples": {
                  "response": {
                    "value": "2022-02-24"
                  }
                }
              },
              "noEmailForZeroAmountInvoice": {
                "examples": {
                  "response": {
                    "value": false
                  }
                }
              },
              "status": {
                "examples": {
                  "response": {
                    "value": "Pending"
                  }
                }
              },
              "success": {
                "examples": {
                  "response": {
                    "value": true
                  }
                }
              },
              "targetDate": {
                "examples": {
                  "response": {
                    "value": "2022-02-24"
                  }
                }
              },
              "updatedById": {
                "examples": {
                  "response": {
                    "value": "2c92c0f84298ac5901429dea196212be"
                  }
                }
              },
              "updatedDate": {
                "examples": {
                  "response": {
                    "value": "2022-08-22 06:47:18"
                  }
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Execute an invoice schedule",
        "tags": [
          "Invoice Schedules"
        ]
      }
    },
    "/v1/invoice-schedules/{scheduleKey}/pause": {
      "put": {
        "description": "Pauses an invoice schedule immediately.\n\nA paused invoice schedule and charges inside cannot be automatically executed by Zuora\nScheduler or by the <a href=\"https://developer.zuora.com/api-references/api/operation/POST_ExecuteInvoiceSchedule/\" target=\"_blank\">Execute an invoice schedule</a>\nAPI operation. In this case, you can do one of the following:\n- Use the <a href=\"https://developer.zuora.com/v1-api-reference/api/operation/POST_GenerateBillingDocuments/\" target=\"_blank\">Generate billing documents by account ID</a> API operation\n- Create a bill run with the target date greater than the next run date of the invoice schedule through UI or API\n\n**Note**: This operation is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Schedule/Billing_Schedule_overview\" target=\"_blank\">Billing Schedule</a> feature enabled.\n",
        "operationId": "PUT_PauseInvoiceSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the schedule to be paused. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n",
            "in": "path",
            "name": "scheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "actualAmount": 20200,
                      "billedAmount": 50000,
                      "currency": "USD",
                      "id": "e2441b3e24eb42859194be7da2403b38",
                      "nextRunDate": "2022-10-17",
                      "notes": "2022 Billing Schedule",
                      "number": "IS-00000004",
                      "orders": [
                        "O-00000007",
                        "O-00000008"
                      ],
                      "scheduleItems": [
                        {
                          "actualAmount": 0,
                          "amount": 50000,
                          "id": "8a8881aa82118bec018211daf9f01680",
                          "invoiceId": "8a8881aa82118bec018211dafc1e1695",
                          "percentage": null,
                          "runDate": "2022-02-24",
                          "status": "Processed",
                          "targetDateForAdditionalSubscriptions": "2022-02-24"
                        },
                        {
                          "actualAmount": 14000,
                          "amount": 14000,
                          "id": "8a8881aa82118bec018211daf9f11681",
                          "percentage": null,
                          "runDate": "2022-10-17",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-10-17"
                        },
                        {
                          "actualAmount": 6200,
                          "amount": 6200,
                          "id": "8a8881aa82118bec018211daf9f11682",
                          "percentage": null,
                          "runDate": "2022-11-14",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-11-14"
                        }
                      ],
                      "specificSubscriptions": [
                        {
                          "orderKey": "O-00000008",
                          "subscriptionKey": "S-00000008"
                        }
                      ],
                      "status": "Paused",
                      "success": true,
                      "totalAmount": 70200,
                      "unbilledAmount": 20200
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/InvoiceScheduleResponses"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Pause an invoice schedule",
        "tags": [
          "Invoice Schedules"
        ]
      }
    },
    "/v1/invoice-schedules/{scheduleKey}/resume": {
      "put": {
        "description": "Resumes an invoice schedule in Paused status immediately.\n\nAfter an invoice schedule is resumed, it can continue to be automatically executed\nby Zuora Scheduler or by the [Execute an invoice schedule](https://developer.zuora.com/api-references/api/operation/POST_ExecuteInvoiceSchedule/)\nAPI operation.\n\n**Note**: This operation is available only if you have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Billing_Schedule/Billing_Schedule_overview\" target=\"_blank\">Billing Schedule</a> feature enabled.\n",
        "operationId": "PUT_ResumeInvoiceSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the schedule to be resumed. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n",
            "in": "path",
            "name": "scheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "actualAmount": 20200,
                      "billedAmount": 50000,
                      "currency": "USD",
                      "id": "e2441b3e24eb42859194be7da2403b38",
                      "nextRunDate": "2022-10-17",
                      "notes": "2022 Billing Schedule",
                      "number": "IS-00000004",
                      "orders": [
                        "O-00000007",
                        "O-00000008"
                      ],
                      "scheduleItems": [
                        {
                          "actualAmount": 0,
                          "amount": 50000,
                          "id": "8a8881aa82118bec018211daf9f01680",
                          "invoiceId": "8a8881aa82118bec018211dafc1e1695",
                          "percentage": null,
                          "runDate": "2022-02-24",
                          "status": "Processed",
                          "targetDateForAdditionalSubscriptions": "2022-02-24"
                        },
                        {
                          "actualAmount": 14000,
                          "amount": 14000,
                          "id": "8a8881aa82118bec018211daf9f11681",
                          "percentage": null,
                          "runDate": "2022-10-17",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-10-17"
                        },
                        {
                          "actualAmount": 6200,
                          "amount": 6200,
                          "id": "8a8881aa82118bec018211daf9f11682",
                          "percentage": null,
                          "runDate": "2022-11-14",
                          "status": "Pending",
                          "targetDateForAdditionalSubscriptions": "2022-11-14"
                        }
                      ],
                      "specificSubscriptions": [
                        {
                          "orderKey": "O-00000008",
                          "subscriptionKey": "S-00000008"
                        }
                      ],
                      "status": "PartiallyProcessed",
                      "success": true,
                      "totalAmount": 70200,
                      "unbilledAmount": 20200
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/InvoiceScheduleResponses"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Resume an invoice schedule",
        "tags": [
          "Invoice Schedules"
        ]
      }
    },
    "/v1/invoice-schedules/{scheduleKey}/detach": {
      "put": {
        "description": "Detaches charges from an invoice schedule. The invoice schedules you want to detach charges from must be in Fully Processed or Partially Processed status. Invoice schedules do not bill detached charges.\n",
        "operationId": "detachChargesFromInvoiceSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the invoice schedule to detach charges from. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n",
            "in": "path",
            "name": "scheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DetachInvoiceScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Detach charges from an invoice schedule",
        "tags": [
          "Invoice Schedules"
        ]
      }
    },
    "/v1/invoice-schedules/{scheduleKey}/attach": {
      "put": {
        "description": "Attaches charges to an invoice schedule. The invoice schedules you want to attach charges to must be in Fully Processed or Partially Processed status. \nYou can attach charges only if they were previously detached from the same invoice schedule. Invoice schedules will automatically bill re-attached charges in the upcoming planned invoice schedule items.\n",
        "operationId": "attachChargesToInvoiceSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of the invoice schedule to attach charges to. For example, 2c92c8955bd63cc1015bd7c151af02ab or IS-0000001.\n",
            "in": "path",
            "name": "scheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachInvoiceScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Attach charges to an invoice schedule",
        "tags": [
          "Invoice Schedules"
        ]
      }
    },
    "/v1/object/taxation-item": {
      "post": {
        "description": "Creates a Taxation Item object.",
        "operationId": "Object_POSTTaxationItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_rejectUnknownFields"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProxyCreateTaxationItem"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Id": "2c93808457d787030157e0306f413a96",
                      "Success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyCreateOrModifyResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Errors": [
                        {
                          "Code": "INVALID_VALUE",
                          "Message": "The account number 123xProxy is invalid."
                        }
                      ],
                      "Success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyBadRequestResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Create a taxation item",
        "tags": [
          "Taxation Items"
        ]
      }
    },
    "/v1/taxation-items/{id}": {
      "delete": {
        "description": "Deletes a specific taxation item by ID.\n",
        "operationId": "DELETE_TaxationItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a taxation item.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a taxation item",
        "tags": [
          "Taxation Items"
        ]
      },
      "get": {
        "description": "Retrieves the information about a specific taxation item by ID.\n",
        "operationId": "GET_TaxationItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a taxation item.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-02-27 11:52:03",
                      "exemptAmount": 0,
                      "financeInformation": {
                        "onAccountAccountingCode": "Check",
                        "onAccountAccountingCodeType": "Cash",
                        "salesTaxPayableAccountingCode": "Check",
                        "salesTaxPayableAccountingCodeType": "Cash"
                      },
                      "id": "402890555a7d4022015a7db254e200c8",
                      "jurisdiction": null,
                      "locationCode": null,
                      "memoItemId": "402890555a7d4022015a7db254d800c7",
                      "name": "my tax",
                      "sourceTaxItemId": "402890555a7d4022015a7db254e200c1",
                      "success": true,
                      "taxAmount": 1,
                      "taxCode": "ZtaxCode",
                      "taxCodeDescription": "",
                      "taxDate": "2017-02-27",
                      "taxRate": 5,
                      "taxRateDescription": null,
                      "taxRateType": "FlatFee",
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-02-27 11:52:03"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETTaxationItemType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a taxation item\n",
        "tags": [
          "Taxation Items"
        ]
      },
      "put": {
        "description": "Updates a specific taxation item by ID.\n",
        "operationId": "PUT_TaxationItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a taxation item.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTTaxationItemType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "createdById": "8ad084a67f9c7138017fab8a8b511b5a",
                      "createdDate": "2024-11-04 10:53:16",
                      "exemptAmount": 0,
                      "id": "8ad09d9392e0a4430192f51746d121f6",
                      "memoItemId": null,
                      "invoiceItemId": "8ad086fa92d66ffe0192dc7e5dd65161",
                      "sourceTaxItemId": null,
                      "jurisdiction": "CALIFORNIA",
                      "locationCode": null,
                      "name": "CA TAX",
                      "taxAmount": 3,
                      "applicableTaxUnRounded": 3,
                      "country": null,
                      "taxCode": null,
                      "taxCodeDescription": null,
                      "taxDate": "2024-11-04",
                      "taxRate": 3,
                      "taxMode": "TaxExclusive",
                      "taxRateDescription": "Details of the tax rate",
                      "taxRateType": "FlatFee",
                      "updatedById": "8ad084a67f9c7138017fab8a8b511b5a",
                      "updatedDate": "2024-11-04 10:57:51",
                      "financeInformation": {
                        "onAccountAccountingCode": null,
                        "onAccountAccountingCodeType": null,
                        "salesTaxPayableAccountingCode": "Sales Tax Payable",
                        "salesTaxPayableAccountingCodeType": "SalesTaxPayable"
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETTaxationItemType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a taxation item",
        "tags": [
          "Taxation Items"
        ]
      }
    },
    "/v1/sequence-sets": {
      "get": {
        "description": "Retrieves information about all sequence sets configured for billing documents, payments, and refunds. Billing documents include invoices, credit memos, and debit memos.\n\nYou can use query parameters to restrict the data returned in the response.\n\n**Note**: The Credit and Debit Memos feature is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n",
        "operationId": "GET_SequenceSets",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "description": "The name or number of a specific sequence set.\n",
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "sequenceSets": [
                        {
                          "creditMemo": {
                            "prefix": "CM",
                            "startNumber": 11
                          },
                          "debitMemo": {
                            "prefix": "DM",
                            "startNumber": 12
                          },
                          "id": "2c98906c69be199c0169be74ed210afd",
                          "invoice": {
                            "prefix": "INV",
                            "startNumber": 10
                          },
                          "name": "DEFAULT",
                          "payment": {
                            "prefix": "P-",
                            "startNumber": 13
                          },
                          "refund": {
                            "prefix": "R-",
                            "startNumber": 14
                          }
                        },
                        {
                          "creditMemo": {
                            "prefix": "FCM",
                            "startNumber": 11
                          },
                          "debitMemo": {
                            "prefix": "FDM",
                            "startNumber": 12
                          },
                          "id": "2c98906c69be199c0169be74ed211afd",
                          "invoice": {
                            "prefix": "FINV",
                            "startNumber": 10
                          },
                          "name": "FR",
                          "payment": {
                            "prefix": "FP-",
                            "startNumber": 13
                          },
                          "refund": {
                            "prefix": "FR-",
                            "startNumber": 14
                          }
                        },
                        {
                          "creditMemo": {
                            "prefix": "ITACM",
                            "startNumber": 11
                          },
                          "debitMemo": {
                            "prefix": "ITADM",
                            "startNumber": 12
                          },
                          "id": "2c98906c69be199c0169be74ed212afd",
                          "invoice": {
                            "prefix": "ITAINV",
                            "startNumber": 10
                          },
                          "name": "ITA",
                          "payment": {
                            "prefix": "ITAP-",
                            "startNumber": 13
                          },
                          "refund": {
                            "prefix": "ITAR-",
                            "startNumber": 14
                          }
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETSequenceSetsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List sequence sets",
        "tags": [
          "Sequence Sets"
        ]
      },
      "post": {
        "description": "Creates sequence sets, allowing distinct numbering sequences for billing documents, payments, and refunds. Billing documents include invoices, credit memos, and debit memos.\n\nYou can create a maximum of 100 sequence sets in one single request. A sequence set comprises a set of custom prefixes and starting numbers that are used for billing documents to generate, and payments and refunds to create.\n\nSee [Prefix and Numbering Configuration for Billing Documents](https://knowledgecenter.zuora.com/CB_Billing/Billing_Settings/Prefix_and_Numbering_Configuration_for_Billing_Documents) for more information about limitations.\n\n**Note**: The Credit and Debit Memos feature is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n",
        "operationId": "POST_SequenceSets",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTSequenceSetsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "sequenceSets": [
                        {
                          "id": "402892c74c9193cd014c96bbe7c101f9",
                          "name": "FR",
                          "creditMemo": {
                            "prefix": "FCM",
                            "startNumber": 10
                          },
                          "debitMemo": {
                            "prefix": "FDM",
                            "startNumber": 10
                          },
                          "invoice": {
                            "prefix": "FINV",
                            "startNumber": 10
                          },
                          "payment": {
                            "prefix": "FP-",
                            "startNumber": 10
                          },
                          "refund": {
                            "prefix": "FR-",
                            "startNumber": 10
                          }
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTSequenceSetsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create sequence sets",
        "tags": [
          "Sequence Sets"
        ]
      }
    },
    "/v1/sequence-sets/{id}": {
      "delete": {
        "description": "Deletes a specific sequence set configured for billing documents, payments, and refunds. Billing documents include invoices, credit memos, and debit memos.\n\n**Note**: The Credit and Debit Memos feature is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n",
        "operationId": "DELETE_SequenceSet",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID or number of the sequence set to delete.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a sequence set",
        "tags": [
          "Sequence Sets"
        ]
      },
      "get": {
        "description": "Retrieves information about a specific sequence set configured for billing documents, payments, and refunds. Billing documents include invoices, credit memos, and debit memos\n\n**Note**: The Credit and Debit Memos feature is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n",
        "operationId": "GET_SequenceSet",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID or number of the sequence set to retrieve information about.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "creditMemo": {
                        "prefix": "FCM",
                        "startNumber": 11
                      },
                      "debitMemo": {
                        "prefix": "FDM",
                        "startNumber": 12
                      },
                      "invoice": {
                        "prefix": "FINV",
                        "startNumber": 10
                      },
                      "name": "FR",
                      "payment": {
                        "prefix": "FP-",
                        "startNumber": 13
                      },
                      "refund": {
                        "prefix": "FR-",
                        "startNumber": 14
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETSequenceSetResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a sequence set",
        "tags": [
          "Sequence Sets"
        ]
      },
      "put": {
        "description": "Updates a specific sequence set configured for billing documents, payments, and refunds. Billing documents include invoices, credit memos, and debit memos.\n\n**Note**: The Credit and Debit Memos feature is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n",
        "operationId": "PUT_SequenceSet",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID or number of the sequence set to update.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTSequenceSetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTSequenceSetResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a sequence set",
        "tags": [
          "Sequence Sets"
        ]
      }
    },
    "/v1/operations/billing-preview": {
      "post": {
        "description": "\nGenerates a preview of future invoice items for one customer account. Use the BillingPreview call to calculate how much a single customer will be invoiced from the most recent invoice to a specific end of term date in the future.\n\nAdditionally, you can use the BillingPreview service to access real-time data on an individual customer's usage consumption. \n\nThe BillingPreview call only calculates taxes for charges in the subscription if you use [Zuora Tax](https://knowledgecenter.zuora.com/Billing/Taxes/A_Zuora_Tax) and the product rate plan charge associated with the invoice item uses the [tax inclusive mode](https://knowledgecenter.zuora.com/Billing/Taxes/A_Zuora_Tax/D_Associate_tax_codes_with_product_charges_and_set_the_tax_mode); otherwise, this call does not calculate taxes.\n\nIf you have the Invoice Settlement feature enabled, you can also generate a preview of future credit memo items for one customer account. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n",
        "operationId": "POST_BillingPreview",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostBillingPreviewParam"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "8ad09bce83f1da020183f97e245c1c47",
                      "invoiceItems": [
                        {
                          "id": "d573746814a14da0a0a0abda2a41d65a",
                          "subscriptionName": "A-S00000346",
                          "subscriptionId": "8ad08ad58e35d490018e36a0f1ca2a9c",
                          "subscriptionNumber": "A-S00000346",
                          "serviceStartDate": "2024-08-01",
                          "serviceEndDate": "2024-08-31",
                          "chargeAmount": 10,
                          "chargeDescription": "",
                          "chargeName": "Monthly Fee",
                          "chargeNumber": "C-00000950",
                          "chargeId": "8ad08ad58e35d490018e36a0f2252aa5",
                          "productName": "Music service",
                          "quantity": 1,
                          "taxAmount": 0,
                          "unitOfMeasure": "",
                          "chargeDate": "2024-07-09 17:06:58",
                          "chargeType": "Recurring",
                          "processingType": "Charge",
                          "appliedToItemId": null,
                          "numberOfDeliveries": 0
                        },
                        {
                          "id": "c86c42ee4f5b42bd86351f4a99bf230e",
                          "subscriptionName": "A-S00000346",
                          "subscriptionId": "8ad08ad58e35d490018e36a0f1ca2a9c",
                          "subscriptionNumber": "A-S00000346",
                          "serviceStartDate": "2024-09-01",
                          "serviceEndDate": "2024-09-30",
                          "chargeAmount": 10,
                          "chargeDescription": "",
                          "chargeName": "Monthly Fee",
                          "chargeNumber": "C-00000950",
                          "chargeId": "8ad08ad58e35d490018e36a0f2252aa5",
                          "productName": "Music service",
                          "quantity": 1,
                          "taxAmount": 0,
                          "unitOfMeasure": "",
                          "chargeDate": "2024-07-09 17:06:58",
                          "chargeType": "Recurring",
                          "processingType": "Charge",
                          "appliedToItemId": null,
                          "numberOfDeliveries": 0
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/BillingPreviewResult"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Generate a billing preview",
        "tags": [
          "Operations"
        ]
      }
    },
    "/v1/operations/invoice-collect": {
      "post": {
        "description": "Generates and posts invoices and credit memos and collects payments for posted invoices. Credit memos are only available if you have the Invoice Settlement feature enabled and negative charges exist. Credit memos will not be applied to invoices. If draft invoices and credit memos exist when you run this operation, this operation will post the invoices and credit memos. Note that draft credit memos created from an invoice or a product rate plan charge will not be posted.\n\nYou can use this operation to generate invoices and collect payments on the posted invoices,\n or else simply collect payment on a specified existing\ninvoice. The customer's default payment method is used, and the full\namount due is collected. The operation depends on the parameters you\nspecify.\n\n- To generate one or more new invoices for that customer and collect\npayment on the generated and other unpaid invoice(s), leave the **invoiceId** field empty. \n\n- To collect payment on an existing invoice, specify the invoice ID. \n\n\nThe operation is atomic; if any part is unsuccessful, the entire\noperation is rolled back.\n\nWhen an error occurs, gateway reason codes and error messages are returned the error response of this operation. The following items are some gateway response code examples.\n\n- Orbital: `05 Do Not Honor`; `14 Invalid Credit Card Number`\n- Vantiv: `301 Invalid Account Number`; `304 Lost/Stolen Card`  \n- CyberSource2: `202 Expired card`; `231 Invalid account number`\n\nFor more reason code information, see the corresponding payment gateway documentation. \n\n\n### Notes\n\nTimeouts may occur when using this method on an account that\nhas an extremely high number of subscriptions.\n",
        "operationId": "POST_TransactionInvoicePayment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTInvoiceCollectType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amountCollected": 801.73,
                      "creditMemos": [
                        {
                          "id": "402890555a7e9791015a879f064a0054",
                          "totalAmount": 801.73,
                          "memoNumber": "CM00000012"
                        }
                      ],
                      "invoices": [
                        {
                          "invoiceAmount": 801.73,
                          "invoiceId": "4028925a4cb74ec9014cb7540988002e",
                          "invoiceNumber": "INV00000091"
                        }
                      ],
                      "paymentId": "402892053e100406013e1024ab7c00e3",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTInvoiceCollectResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Invoice and collect",
        "tags": [
          "Operations"
        ]
      }
    },
    "/v1/operations/jobs/{jobId}": {
      "get": {
        "description": "Retrieves information about a specific operation job.\n\nCurrently, you can only use this API operation to retrieve the status information about invoice deletion and reversal operation jobs.\n",
        "operationId": "GET_OperationJob",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the operation job to retrieve information about. For example, 2c92c8955bd63cc1015bd7c151af02ab.\n",
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "4028818484a949680184a95174cb0019",
                      "objectId": "4028818484a949680184a9510c960009",
                      "objectType": "Invoice",
                      "operationType": "Delete",
                      "status": "Completed",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetOperationJobResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an operation job",
        "tags": [
          "Operations"
        ]
      }
    },
    "/v1/operations/bulk-pdf": {
      "post": {
        "description": "The background job that compresses large number of PDF(s) into ZIP files. For answers to frequently asked questions regarding exporting bulk PDF files, see <a href=\"https://docs.zuora.com/en/zuora-billing/bill-your-customer/export-bulk-pdf-files/faqs\" target=\"_blank\">Export Bulk PDF Files FAQs</a>.\n**Note**: Do not include multiple objectIds with the same PDF file names in a single bulk PDF upload request.\n",
        "operationId": "Create_BulkPDFToZIPGeneration",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTBulkPdfGenerationJobRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "jobId": "402880de8ce7edc3018ce7f18404312a",
                  "jobName": "BulkPDFGenerationJobV1",
                  "status": "Completed",
                  "stepStatus": "PostProcessing",
                  "fileUrls": "<s3-url>",
                  "skippedDocuments": [
                    {
                      "docType": "Invoice",
                      "objectIds": [
                        "8a90a04d8e323748018e327b4a0825a0"
                      ]
                    },
                    {
                      "docType": "CreditMemo",
                      "objectIds": [
                        "402880de8ce7edc3018ce7f18404315a"
                      ]
                    }
                  ],
                  "createdBy": "2c92c8fb7a2d26b6017a2eaa64c72dea",
                  "createdOn": "2024-04-19 05:19:32",
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTBulkPdfGenerationJobResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Content_Encoding"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Reset"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "processId": "processId",
                  "reasons": [
                    {
                      "code": "51580020",
                      "message": "All Document IDs provided in this request were either invalid or the billing document is not available."
                    }
                  ],
                  "success": false,
                  "requestId": "d4b8c683-04ff-407d-964a-a63ae7917483"
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Invalid input",
            "headers": {
              "Content-Encoding": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Content_Encoding"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Reset"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Export bulk PDF files",
        "tags": [
          "Operations"
        ],
        "x-accepts": "application/json",
        "x-codegen-request-body-name": "Request",
        "x-content-type": "application/json"
      }
    },
    "/v1/operations/bulk-pdf/{jobId}": {
      "get": {
        "description": "Retrieves information about the job which includes its status, message, and downloadable ZIP file URL link.",
        "operationId": "Get_BulkPDFToZIPGeneration",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "description": "The ID of the job for which information needs to be retrieved. For example, 2c92c8955bd63cc1015bd7c151af02ab",
            "in": "path",
            "name": "jobId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "jobId": "2c92c8955bd63cc1015bd7c151af02ab",
                  "jobName": "BulkPDFGenerationJobV1",
                  "status": "Completed",
                  "stepStatus": "PostProcessing",
                  "fileUrls": [
                    "https://s3.us-west-2.amazonaws.com/billing-file-repository/bulk-pdf-generation/12345/all-invoices-posted-jan-2024_1.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20231222T075849Z&X-Amz-SignedHeaders=host&X-Amz-Expires=259199&X-Amz-Credential=fakeMyKeyId%2F20231222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=62368dbec1763101fba328cf83ae7d3efd780fa03f443370d2f353757e79fc99",
                    "https://s3.us-west-2.amazonaws.com/billing-file-repository/bulk-pdf-generation/12345/all-invoices-posted-jan-2024_2.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20231222T075849Z&X-Amz-SignedHeaders=host&X-Amz-Expires=259199&X-Amz-Credential=fakeMyKeyId%2F20231222%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=62368dbec1763101fba328cf83ae7d3efd780fa03f443370d2f353757e79fc99"
                  ],
                  "createdOn": "2024-01-08 12:52:05",
                  "createdBy": "caf630704a6f4100818601625ecffe0b",
                  "success": true
                },
                "schema": {
                  "$ref": "#/components/schemas/GETBulkpdfGenerationJobResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Content_Encoding"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_RateLimit_Reset"
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve information of a bulk PDF file generation job",
        "tags": [
          "Operations"
        ],
        "x-accepts": "application/json"
      }
    },
    "/v1/bill-runs": {
      "post": {
        "description": "Creates an ad-hoc bill run or a scheduled bill run. Support the following:\n - Create ad-hoc or scheduled bill runs by batch\n - Create ad-hoc or scheduled bill runs by account\n - Create a bill run by subscription\n - Create ad-hoc or scheduled bill runs by custom filter combining the Account, Subscription, and Rate Plan objects.\n \n To use this operation, you must have the <a href=\"https://knowledgecenter.zuora.com/Zuora_Platform/Tenant_Management/A_Administrator_Settings/User_Roles/d_Billing_Roles\" target=\"_blank\">Create Bill Runs billing permission</a>.\n\n**Notes**\n\nWhen using this operation to create bill runs, keep the following notes in mind:\n  - When creating bill runs by batch, you must specify the `batches` field and do not specify `billRunFilters` field. When creating bill runs by account, subscription, or custom filter, you must specify the `billRunFilters` field and do not specify the `batches` field.\n  - When creating bill runs by account, only one single account is allowed. All subscription under the account are picked up.\n  - When creating a bill run by subscription, all subscriptions must belong to the same account. At most 50 subscriptions are allowed. \n  - If more than 500 bill runs created through this operation are in `Pending` status, you cannot use this operation to create any more bill runs.\n",
        "operationId": "POST_CreateBillRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTCreateBillRunRequestType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBillRunResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a bill run",
        "tags": [
          "Bill Run"
        ]
      }
    },
    "/v1/bill-runs/{billRunId}": {
      "delete": {
        "description": "Deletes a bill run. You can only delete bill runs in `Canceled` or `Error` status. \n",
        "operationId": "DELETE_DeleteBillRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a bill run.\n",
            "in": "path",
            "name": "billRunId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBillRunResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a bill run",
        "tags": [
          "Bill Run"
        ]
      },
      "get": {
        "description": "Retrieves the information about a specific bill run.\n",
        "operationId": "GET_BillRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a bill run.\n",
            "in": "path",
            "name": "billRunId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBillRunResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a bill run",
        "tags": [
          "Bill Run"
        ]
      }
    },
    "/v1/bill-runs/{billRunId}/cancel": {
      "put": {
        "description": "Cancels a bill run in Draft status.\n\nWhen cancelling a scheduled bill run, keep the following information in mind:\n- If you set `cancelOnce` to `true`, only the current bill run is cancelled. The other future scheduled bill runs will be automatically executed based on the schedule.\n- If you set `cancelOnce` to `false`, all future recurring bill runs are cancelled.\n",
        "operationId": "PUT_CancelBillRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a bill run.\n",
            "in": "path",
            "name": "billRunId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "cancelOnce": true
                },
                "properties": {
                  "cancelOnce": {
                    "default": true,
                    "description": "Whether to cancel the current bill run or cancel all future recurring bill runs, only valid for a scheduled bill run.\n",
                    "type": "boolean"
                  }
                },
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelBillRunResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a bill run",
        "tags": [
          "Bill Run"
        ]
      }
    },
    "/v1/bill-runs/{billRunId}/post": {
      "put": {
        "description": "Posts a bill run asynchronously. To post a bill run, the current bill run must be in `Completed` status.\n\nWhen a bill run is being posted, its status is changed to `PostInProgress`. After all invoices for this bill run are posted, its status is changed to `Posted`.\n",
        "operationId": "PUT_PostBillRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a bill run.\n",
            "in": "path",
            "name": "billRunId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "example": {
                  "invoiceDate": "2022-01-01"
                },
                "properties": {
                  "invoiceDate": {
                    "description": "The date that appears on the invoice being created, in `yyyy-mm-dd` format. \n\nThe value cannot fall in a closed accounting period.\n",
                    "format": "date",
                    "type": "string"
                  }
                },
                "required": [
                  "invoiceDate"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetBillRunResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Post a bill run",
        "tags": [
          "Bill Run"
        ]
      }
    },
    "/v1/bill-runs/{billRunKey}/emails": {
      "post": {
        "description": "Manually emails all the billing documents that are generated from a specified bill run to your customers. \n\n\nBill runs can generate invoices and credit memos based on your [invoice and credit memo generation rule](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/Credit_and_Debit_Memos/Rules_for_Generating_Invoices_and_Credit_Memos). Credit memos are only available if you have the Invoice Settlement feature enabled.\n\n\nUsing this API operation, the billing documents are sent to the email addresses specified in the **To Email** field of the email templates. The email template used for each billing document is set in the **Delivery Options** panel of the **Edit notification** dialog from the Zuora UI. See [Edit Email Templates](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/Create_Email_Templates) for more information about how to edit the **To Email** field in the email template.\n\n\n\n\n\n### Notes\n  - Even though no field is required in the Request body, you still need to specify `{}` in the request. Otherwise, an error will be returned.\n\n\n  - You can only email posted billing documents.\n\n\n  - You must activate the following notifications before emailing invoices and credit memos:\n    - **Manual Email For Invoice | Manual Email For Invoice** \n    - **Email Credit Memo | Manually email Credit Memo**\n\n\n  - To include the invoice PDF in the email, select the **Include Invoice PDF** check box in the **Edit notification** dialog from the Zuora UI. To include the credit memo PDF in the email, select the **Include Credit Memo PDF** check box in the **Edit notification** dialog from the Zuora UI. See [Create and Edit Notifications](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/C_Create_Notifications#section_2) for more information.\n\n\n\n  - Zuora sends the email messages based on the email template you set. You can set the email template to use in the **Delivery Options** panel of the **Edit notification** dialog from the Zuora UI. By default, the following templates are used for billing documents:\n    - Invoices: **Invoice Posted Default Email Template**\n    - Credit memos: **Manual Email for Credit Memo Default Template**  \n\n    See [Create and Edit Email Templates](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/Create_Email_Templates) for more information.\n",
        "operationId": "POST_EmailBillingDocumentsfromBillRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID or number of the bill run. For example, 2c92c8f95d0c886e015d11287a8f0f8b or BR-00000001.\n",
            "in": "path",
            "name": "billRunKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTEmailBillingDocfromBillRunType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Email billing documents generated from a bill run",
        "tags": [
          "Bill Run"
        ]
      }
    },
    "/v1/billing-preview-runs": {
      "post": {
        "description": "Creates a billing preview run for single and multiple customer accounts.\n\nThe maximum supported preview duration is 20 years, calculated from the current date to the target date.\n\nYou can run up to 20 billing preview runs in batches concurrently. A single batch of customer accounts can only have one billing preview run at a time. So you can have up to 20 batches running at the same time. If you create a billing preview run for all customer batches, you cannot create another billing preview run until this preview run is completed.\n\n**Note:** The preview results for each billing preview run will be stored in the system for 180 days; after that they will be purged.\n",
        "operationId": "POST_BillingPreviewRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostBillingPreviewRunParam"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "billingPreviewRunId": "402890b757d1ec1b0157d5aa3d6802aa",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "billingPreviewRunId": {
                      "description": "Id of the billing preview run.\n",
                      "type": "string"
                    },
                    "success": {
                      "description": "Returns `true` if the request was processed successfully.\n",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a billing preview run",
        "tags": [
          "Billing Preview Run"
        ]
      }
    },
    "/v1/billing-preview-runs/{billingPreviewRunId}": {
      "get": {
        "description": "Retrieves a preview of future invoice items for multiple customer accounts through a billing preview run. If you have the Invoice Settlement feature enabled,  you can also retrieve a preview of future credit memo items. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nA billing preview run asynchronously generates a downloadable CSV file containing a preview of invoice item data and credit memo item data for a batch of customer accounts. Note that if you set `storageOption` to `Database`, no CSV file is generate; instead, you can have a record in the billing preview result. You can use data source to query <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Reporting/D_Data_Sources_and_Exports/C_Data_Source_Reference/Billing_Preview_Run_Result_data_source\" target=\"_blank\">Billing Preview Run Result</a>. \n",
        "operationId": "GET_BillingPreviewRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "Id of the billing preview run.\n",
            "in": "path",
            "name": "billingPreviewRunId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "assumeRenewal": "Autorenew",
                      "batches": "",
                      "chargeTypeToExclude": "OneTime",
                      "createdById": "4028906d58240f960158241132be0003",
                      "createdDate": "2016-11-04 16:18:56",
                      "endDate": "2016-11-04 16:19:00",
                      "errorMessage": null,
                      "includingDraftItems": false,
                      "includingEvergreenSubscription": true,
                      "resultFileUrl": "https://rest.zuora.com/v1/files/4028906d582d21a101582e6b663c0a65",
                      "runNumber": "BPR-00000010",
                      "startDate": "2016-11-04 16:19:00",
                      "status": "Completed",
                      "succeededAccounts": 7,
                      "success": true,
                      "targetDate": "2016-12-01",
                      "totalAccounts": 7,
                      "updatedById": "4028906d58240f960158241132be0003",
                      "updatedDate": "2016-11-04 16:19:00"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetBillingPreviewRunResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a billing preview run",
        "tags": [
          "Billing Preview Run"
        ]
      }
    },
    "/v1/payment-methods": {
      "post": {
        "description": "You can use this operation to create either a payment method associated \nwith a specific customer account, or an orphan payment method that is not associated\nwith any customer account.\n\nTo view the applicable fields for each payment method type, select the payment method type from the `type` list.\nThe following types of the payment methods are supported:\n\n  * `CreditCard` - Credit card payment method.\n\n  * `CreditCardReferenceTransaction` - Credit Card Reference\n  Transaction. See [Supported payment\n  methods](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Supported_Payment_Methods)\n  for payment gateways that support this type of payment method.\n\n  * `ACH` - ACH payment method.\n\n  * `SEPA` - Single Euro Payments Area.\n\n  * `Betalingsservice` - Direct Debit DK.\n\n  * `Autogiro` - Direct Debit SE.\n\n  * `Bacs` - Direct Debit UK.\n\n  * `Becs` - Direct Entry AU.\n\n  * `Becsnz` - Direct Debit NZ.\n\n  * `PAD` - Pre-Authorized Debit.\n\n  * `PayPalCP` - PayPal Commerce Platform payment method. Use this type\n  if you are using a [PayPal Commerce Platform\n  Gateway](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Commerce_Platform_Gateway)\n  instance.\n\n  * `PayPalEC` - PayPal Express Checkout payment method. Use this type\n  if you are using a [PayPal Payflow Pro\n  Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Payflow_Pro%2C_Website_Payments_Payflow_Edition%2C_Website_Pro_Payment_Gateway)\n  instance.\n\n  * `PayPalNativeEC` - PayPal Native Express Checkout payment method.\n  Use this type if you are using a [PayPal Express Checkout\n  Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Express_Checkout_Gateway)\n  instance.\n\n  * `PayPalAdaptive` - PayPal Adaptive payment method. Use this type if\n  you are using a [PayPal Adaptive Payment\n  Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/Supported_Payment_Gateways/PayPal_Adaptive_Payments_Gateway)\n  instance.\n\n  * `AdyenApplePay` - Apple Pay on Adyen Integration v2.0. See [Set up\n  Adyen Apple\n  Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Apple_Pay_on_Web/Set_up_Adyen_Apple_Pay)\n  for details.\n\n  * `AdyenGooglePay` - Google Pay on Adyen Integration v2.0. See [Set up\n  Adyen Google\n  Pay](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Adyen_Google_Pay)\n  for details.\n\n  * `GooglePay` - Google Pay on Chase Paymentech Orbital gateway\n  integration. See [Set up Google Pay on\n  Chase](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/L_Payment_Methods/Payment_Method_Types/Set_up_Google_Pay_on_Chase)\n  for details. \n\n * `AmazonPay` - Amazon Pay integration. \n\nThe fields marked as `required` must be specified when creating non-tokenized payment methods. \nFor more information about the required fields for the tokenization of payment methods, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B3_Create_tokenized_payment_methods_with_existing_tokens_or_account_information\" target=\"_blank\">Create tokenized payment methods with existing tokens or account information</a>.\n",
        "operationId": "POST_PaymentMethods",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTPaymentMethodRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "2c92a09650a7a80a0150ab50a5b746bd",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTPaymentMethodResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a payment method",
        "tags": [
          "Payment Methods"
        ]
      }
    },
    "/v1/payment-methods/decryption": {
      "post": {
        "description": "The decryption API endpoint can conditionally perform 4 tasks in one atomic call:\n  * Decrypt Apple Pay Payment token\n  * Create Credit Card Payment Method in Zuora with decrypted Apple Pay information\n  * Create a stored credential profile within the Apple Pay payment method\n  * Process Payment on a specified Invoice (optional)\n",
        "operationId": "POST_PaymentMethodsDecryption",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTPaymentMethodDecryption"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "paymentMethodId": "2c92c8f83dcbd8b1013dcce1d6a600ce",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTPaymentMethodResponseDecryption"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an Apple Pay payment method",
        "tags": [
          "Payment Methods"
        ]
      }
    },
    "/v1/payment-methods/{payment-method-id}": {
      "delete": {
        "description": "Deletes a credit card payment method.\n\nIf the specified payment method is the account's default payment\nmethod, the request will fail.  In that case, you must first designate a\ndifferent payment method for that customer to be the default.\n",
        "operationId": "DELETE_PaymentMethods",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Unique identifier of a payment method. (Since this ID is unique, and linked to a customer account in the system, no customer identifier is needed.)",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a payment method",
        "tags": [
          "Payment Methods"
        ]
      },
      "get": {
        "description": "Use this operation to get the detailed information of an electronic payment method. To retrieve information of both electronic and non-electronic payment methods, use the [Object Query](https://developer.zuora.com/v1-api-reference/api/operation/queryPaymentMethodByKey/) operation.\n\n**Note:** This operation also supports retrieving the custom payment method created through the [Open Payment Method](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/MB_Set_up_custom_payment_gateways_and_payment_methods) service.\n",
        "operationId": "GET_PaymentMethod",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Unique ID of the payment method to update.",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "AA_PICKLIST__c": null,
                      "accountHolderInfo": {
                        "accountHolderName": "John Smith",
                        "addressLine1": "ABC",
                        "addressLine2": "EFT",
                        "city": "Example City",
                        "country": "United States",
                        "email": "example@google.com",
                        "phone": "86123456789",
                        "state": "Example State",
                        "zipCode": "844000"
                      },
                      "accountKey": "4028839f7ca29000017ca29c1ce8003f",
                      "bankIdentificationNumber": "411111",
                      "cardBinInfo": {
                        "brand": "Visa",
                        "cardClass": "Credit",
                        "productType": "Consumer_Card",
                        "issuer": "JPMORGAN CHASE BANK N.A.",
                        "issuingCountryCode": "US"
                      },
                      "cardNumber": "************1111",
                      "createdBy": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2021-11-15 18:59:08",
                      "creditCardType": "Visa",
                      "deviceSessionId": null,
                      "existingMandate": null,
                      "expirationMonth": 11,
                      "expirationYear": 2027,
                      "id": "4028839f7d26a155017d26af16ef0001",
                      "identityNumber": "97370192024",
                      "ipAddress": null,
                      "isDefault": true,
                      "lastFailedSaleTransactionDate": null,
                      "lastTransaction": "Approved",
                      "lastTransactionDateTime": "2021-11-15 18:59:08",
                      "lastTransactionStatus": "Approved",
                      "mandateInfo": {
                        "mitConsentAgreementRef": null,
                        "mitConsentAgreementSrc": null,
                        "mitProfileAction": null,
                        "mitProfileAgreedOn": null,
                        "mitProfileType": null,
                        "mitTransactionId": null
                      },
                      "maxConsecutivePaymentFailures": null,
                      "numConsecutiveFailures": 0,
                      "paymentRetryWindow": null,
                      "status": "Active",
                      "success": true,
                      "totalNumberOfErrorPayments": 0,
                      "totalNumberOfProcessedPayments": 0,
                      "type": "CreditCard",
                      "updatedBy": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2021-11-15 18:59:08",
                      "useDefaultRetryRule": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentMethodResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a payment method",
        "tags": [
          "Payment Methods"
        ]
      },
      "put": {
        "description": "This operation allows you to update an existing payment method.\n\nThe following fields in the request body can be updated for any payment method types:\n  - `maxConsecutivePaymentFailures`\n  - `paymentRetryWindow`\n  - `useDefaultRetryRule`\n\n\nThe following fields in the request body can be updated for any payment method types \nexcept for Credit Card Reference Transaction payment methods:\n  - `authGateway`\n  - `accountHolderInfo`\n  - `gatewayOptions`\n  - `ipAddress`\n  - Custom fields\n\nThe following fields in the request body can be updated only for Credit Card payment methods:\n  - `expirationMonth`\n  - `expirationYear`\n  - `securityCode`\n\nThe following field in the request body can be updated for Credit Card, Credit Card Reference Transaction, ACH, and\nBank Transfer payment methods:\n  - `mandateInfo`\n",
        "operationId": "PUT_PaymentMethod",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Unique ID of the payment method to update.",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTPaymentMethodRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "2c92c0f86c99b4eb016cae1ee301728f",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTPaymentMethodResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a payment method",
        "tags": [
          "Payment Methods"
        ]
      }
    },
    "/v1/payment-methods/{payment-method-id}/verify": {
      "put": {
        "description": "Sends an authorization request to the corresponding payment gateway to verify the payment method, even though no changes are made for the payment method. Supported payment methods are Credit Cards and Paypal.\n\nZuora now supports performing a standalone zero dollar verification or one dollar authorization for credit cards. It also supports a billing agreement status check on PayPal payment methods.\n\nIf a payment method is created by Hosted Payment Pages and is not assigned to any billing account, the payment method cannot be verified through this operation.\n",
        "operationId": "PUT_VerifyPaymentMethods",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID of the payment method to be verified.\n",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTVerifyPaymentMethodType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "paymentMethodId": "402890765d9ce329015da18034ee0057",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTVerifyPaymentMethodResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Verify a payment method",
        "tags": [
          "Payment Methods"
        ]
      }
    },
    "/v1/payment-methods/{payment-method-id}/scrub": {
      "put": {
        "description": "\nThis operation enables you to replace all sensitive data in a payment method, related payment method snapshot table, and four related log tables with dummy values that will be stored in Zuora databases. \n\nThis operation will scrub the sensitive data and soft-delete the specified payment method at the same time. \n\nIf you want to delete or anonymize personal data in Zuora, you must scrub the payment method before anonymizing the associated account and contact. See [Delete or anonymize personal data](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Responding_to_individual_requests_for_access%2C_correction%2C_and_deletion_of_data_under_applicable_privacy_laws#Edit_and_correct_personal_data) for more information.\n\n**Note:** In order to use this operation, you must ensure that the **Scrub Sensitive Data of Specific Payment Method payments** permission is enabled in your user role. Contact your tenant administrator if you want to enable this permission. See [Scrub Payment Methods](https://knowledgecenter.zuora.com/CB_Billing/L_Payment_Methods/Scrub_Payment_Methods) for more information.\n",
        "operationId": "PUT_ScrubPaymentMethods",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the payment method where you want to scrub the sensitive data.\n",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Scrub a payment method",
        "tags": [
          "Payment Methods"
        ]
      }
    },
    "/v1/payment-methods/{payment-method-id}/balance": {
      "get": {
        "summary": "Retrieve the balance of a bank account",
        "tags": [
          "Payment Methods"
        ],
        "description": "Zuora supports Plaid's Auth and Balance products for ACH transactions. \nAuth authenticates account details before sending requests to the gateway, \nwhile Balance checks the real-time account balance before transactions. \nUse this API operation to implement the integration with Plaid Balance manually.\n\nBefore you use this API operation, ensure that the support for Plaid Auth and Balance is enabled. \nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/Enable_the_support_for_Plaid_account_validation_solution\" target=\"_blank\">Enable the support for Plaid account validation solution</a>.\n",
        "operationId": "getBankAccountBalance",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of the payment method, such as `40289f3291d2587b0191d280fa20012g`.",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "currency": "USD",
                      "availableBalance": 100,
                      "currentBalance": 110.55
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetBankAccountBalanceResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "Only ACH payment method is supported to check balance."
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      }
    },
    "/v1/payment-methods/{payment-method-id}/profiles": {
      "get": {
        "description": "Retrieves the stored credential profiles within a payment method.\n",
        "operationId": "GET_StoredCredentialProfiles",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of a payment method.\n",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Specifies whether to retrieve all the stored credential profiles within the payment method.\n\nBy default, Zuora returns only the stored credential profiles with `Agreed` or `Active` status. If you set this parameter to `true`, Zuora returns all the stored credential profiles.\n",
            "in": "query",
            "name": "includeAll",
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "profiles": [
                        {
                          "activatedOn": "2019-03-06 07:45:55",
                          "agreedOn": "2019-03-06 07:45:55",
                          "brand": "Visa",
                          "cancelledOn": "2019-03-13 07:52:16",
                          "consentAgreementRef": "ACCT1338AgreementV1.pdf",
                          "consentAgreementSrc": "External",
                          "expiredOn": null,
                          "number": 1,
                          "paymentMethodId": "402881836953a3c7016953aec290000d",
                          "status": "Cancelled",
                          "type": "Recurring"
                        },
                        {
                          "activatedOn": "2019-03-13 07:55:08",
                          "agreedOn": "2019-03-13 07:55:08",
                          "brand": "Visa",
                          "cancelledOn": null,
                          "consentAgreementRef": "ACCT1338AgreementV2.pdf",
                          "consentAgreementSrc": "External",
                          "expiredOn": null,
                          "number": 2,
                          "paymentMethodId": "402881836953a3c7016953aec290000d",
                          "status": "Active",
                          "type": "Recurring"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetStoredCredentialProfilesResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List stored credential profiles of a payment method",
        "tags": [
          "Payment Methods"
        ]
      },
      "post": {
        "description": "Creates a stored credential profile within a payment method.\n\nThe stored credential profile represents a consent agreement that you have established with a customer. When you use the payment method in a transaction, Zuora may include information from the stored credential profile to inform the payment processor that the transaction is related to your pre-existing consent agreement with the customer.\n",
        "operationId": "POST_CreateStoredCredentialProfile",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of a payment method.\n",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStoredCredentialProfileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "number": 3,
                      "paymentMethodId": "402881836953a3c7016953aec290000d",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ModifiedStoredCredentialProfileResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a stored credential profile",
        "tags": [
          "Payment Methods"
        ]
      }
    },
    "/v1/payment-methods/{payment-method-id}/profiles/{profile-number}/cancel": {
      "post": {
        "description": "Cancels a stored credential profile within a payment method.\n\nCancelling the stored credential profile indicates that the stored credentials are no longer valid, per a customer request. You cannot reactivate the stored credential profile after you have cancelled it.\n",
        "operationId": "POST_CancelStoredCredentialProfile",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of a payment method.\n",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Number that identifies a stored credential profile within the payment method.\n",
            "in": "path",
            "name": "profile-number",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "number": 1,
                      "paymentMethodId": "402881836953a3c7016953aec290000d",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ModifiedStoredCredentialProfileResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a stored credential profile",
        "tags": [
          "Payment Methods"
        ],
        "x-code-samples": [
          {
            "label": "Curl",
            "lang": "curl",
            "source": "curl -X POST -H \"Authorization: Bearer 6d151216ef504f65b8ff6e9e9e8356d3\" \"https://rest.zuora.com/v1/payment-methods/{payment-method-id}/profiles/{profile-number}/cancel\"\n"
          }
        ]
      }
    },
    "/v1/payment-methods/{payment-method-id}/profiles/{profile-number}/expire": {
      "post": {
        "description": "Expires a stored credential profile within a payment method.\n\nExpiring the stored credential profile indicates that the stored credentials are no longer valid, per an expiration policy in the stored credential transaction framework. You cannot reactivate the stored credential profile after you have expired it.\n",
        "operationId": "POST_ExpireStoredCredentialProfile",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of a payment method.\n",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Number that identifies a stored credential profile within the payment method.\n",
            "in": "path",
            "name": "profile-number",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "number": 2,
                      "paymentMethodId": "402881836953a3c7016953aec290000d",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ModifiedStoredCredentialProfileResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Expire a stored credential profile",
        "tags": [
          "Payment Methods"
        ],
        "x-code-samples": [
          {
            "label": "Curl",
            "lang": "curl",
            "source": "curl -X POST -H \"Authorization: Bearer 6d151216ef504f65b8ff6e9e9e8356d3\" \"https://rest.zuora.com/v1/payment-methods/{payment-method-id}/profiles/{profile-number}/expire\"\n"
          }
        ]
      }
    },
    "/v1/payment-methods/apple-pay/domains": {
      "get": {
        "description": "Use this operation to retrieve details of your domains that are already registered with Apple for Apple Pay button integration implemented through Zuora's JavaScript SDK.\n\nYou can use `domainName` as the query parameter to restrict domains returned in the response. Specify a domain name and the registered domains containing the specified domain name will be returned.\n\nFor more information about Zuora's JavaScript SDK for Apple Pay integration, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B_Define_Payment_Methods/Set_up_Apple_Pay_for_gateway_integrations_other_than_Adyen_Integration_v2.0\" target=\"_blank\">Set up Apple Pay through the JavaScript SDK approach</a>.\n",
        "operationId": "GET_ListApplePayDomains",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Specifies a domain name such as `zuora.com` and the registered domains containing the specified domain name will be returned. \n\nFor example, `test1.zuora.com` and `test2.zuora.com` are two registered domains, but `zuora.com` is not registered. If you specify `zuora.com` in this query field, the data of `test1.zuora.com` and `test2.zuora.com` will be returned.\n",
            "in": "query",
            "name": "domainName",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "domains": [
                        {
                          "createdBy": "402881e522cf4f9b0122cf5d82860002",
                          "createdOn": "2023-07-05 00:44:51",
                          "domainName": "testapplepay.zuora.com",
                          "domainVerified": true,
                          "id": "402881a38924ff1001892502da090021",
                          "updatedBy": "402881e522cf4f9b0122cf5d82860002",
                          "updatedOn": "2023-07-05 00:44:51"
                        },
                        {
                          "createdBy": "402881e522cf4f9b0122cf5d82860002",
                          "createdOn": "2023-07-04 01:02:12",
                          "domainName": "test1.zuora.com",
                          "domainVerified": false,
                          "id": "402881a3891fe7b401891fec61d40036",
                          "updatedBy": "402881e522cf4f9b0122cf5d82860002",
                          "updatedOn": "2023-07-04 01:02:12"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETListApplePayDomainsResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List registered Apple Pay domains",
        "tags": [
          "Payment Methods"
        ]
      },
      "post": {
        "description": "Before adding Apple Pay to your checkout flow by integrating with the JavaScript SDK provided by Zuora, your domains that will show the Apple Pay button must be registered with Apple. Use this operation to register a domain. \n\nFor more information about Zuora's JavaScript SDK for Apple Pay integration, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B_Define_Payment_Methods/Set_up_Apple_Pay_for_gateway_integrations_other_than_Adyen_Integration_v2.0\" target=\"_blank\">Set up Apple Pay through the JavaScript SDK approach</a>.\n",
        "operationId": "POST_RegisterApplePayDomain",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTRegisterApplePayDomainRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "domainName": "testapplepay.zuora.com",
                      "domainVerified": true,
                      "id": "402881a38924ff1001892502da090021",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTRegisterApplePayDomainResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Register an Apple Pay domain",
        "tags": [
          "Payment Methods"
        ]
      }
    },
    "/v1/payment-methods/apple-pay/domains/{id}": {
      "delete": {
        "description": "Use this operation to unregister a domain with Apple for Apple Pay button integration implemented through Zuora's JavaScript SDK.\n\nFor more information about Zuora's JavaScript SDK for Apple Pay integration, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B_Define_Payment_Methods/Set_up_Apple_Pay_for_gateway_integrations_other_than_Adyen_Integration_v2.0\" target=\"_blank\">Set up Apple Pay through the JavaScript SDK approach</a>.\n",
        "operationId": "DELETE_UnregisterApplePayDomain",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the domain, such as `402881a38924ff1001892502da090021`.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/DELETEUnresigerApplePayDomainResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Unregister an Apple Pay domain",
        "tags": [
          "Payment Methods"
        ]
      }
    },
    "/web-payments/sessions": {
      "post": {
        "description": "Use this operation to create a payment session on your server side. \nThe response contains a token for the payment session data. \n\nIn addition to the required `accountId` and `currency` fields, you can specify the following fields \nto define the payment flow mode as one of the following:\n  - Create and save a payment method:\n      - `processPayment`: `false`\n      - `storePaymentMethod`: `true`\n      - `amount`\n  - Process a one-time payment without saving the payment method:\n      - `processPayment`: `true`\n      - `storePaymentMethod`: `false`\n      - `amount` or `invoices` + `amount`\n  - Process the first payment and save the payment method for subsequent recurring payments:\n      - `processPayment`: `true`\n      - `storePaymentMethod`: `true`\n      - `amount` or `invoices` + `amount`\n\nFor more information, see the following articles:\n  - <a href=\"https://developer.zuora.com/docs/get-started/tutorials/payment-form/\" target=\"_blank\">Payment Form Implementation Guide</a>\n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Methods/B1_Define_Payment_Methods#Set_up_a_payment_method_through_JavaScript_SDK_integration\" target=\"_blank\">Set up a payment method through JavaScript SDK integration</a>\n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Manage_payment_gateway_integrations_and_payment_methods/Set_up_payment_gateway_integrations/Alipay_Payment_Gateway/Set_up_Alipay_payment_methods_with_Zuora_JavaScript_SDK\" target=\"_blank\">Set up Alipay payment methods with Zuora JavaScript SDK</a>\n",
        "operationId": "POST_CreatePaymentSession",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTCreatePaymentSessionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "token": "LTljuuLaDQnHxeVpWaX6zq2xY2FJ6sSE"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTCreatePaymentSessionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a payment session",
        "tags": [
          "Payment Methods"
        ]
      }
    },
    "/v1/object/payment-method-snapshot/{id}": {
      "get": {
        "description": "This REST API reference describes how to retrieve a Payment Method Snapshot.\n\nA Payment Method Snapshot is a copy of the particular Payment Method used in a transaction. If the Payment Method is deleted, the Payment Method Snapshot continues to retain the data used in each of the past transactions.\n\n### Notes\nThe following Payment Method fields are not available in Payment Method Snapshots:\n\n* `Active`\n* `AchAddress1`\n* `AchAddress2`\n* `CreatedById`\n* `CreatedDate`\n* `UpdatedById`\n* `UpdatedDate`\n\nThe Payment Method Snapshot field `PaymentMethodId` is not available in Payment Methods.\n",
        "operationId": "Object_GETPaymentMethodSnapshot",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "Object fields to return",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "AccountId": "2c93808457d787030157e0314c0945d4",
                      "BankIdentificationNumber": "411111",
                      "CompanyName": "",
                      "CreditCardAddress1": "312 2nd Ave W",
                      "CreditCardCity": "Seattle",
                      "CreditCardCountry": "United States",
                      "CreditCardExpirationMonth": 12,
                      "CreditCardExpirationYear": 2020,
                      "CreditCardHolderName": "Somebody",
                      "CreditCardMaskNumber": "************1111",
                      "CreditCardPostalCode": "98119",
                      "CreditCardState": "Washington",
                      "CreditCardType": "Visa",
                      "Id": "2c93808457d787030157e0314f2245d8",
                      "IdentityNumber": "",
                      "IsCompany": false,
                      "NumConsecutiveFailures": 0,
                      "PaymentMethodId": "2c93808457d787030157e0314e8145d7",
                      "PaymentMethodStatus": "Active",
                      "TotalNumberOfErrorPayments": 0,
                      "TotalNumberOfProcessedPayments": 0,
                      "Type": "CreditCard",
                      "UseDefaultRetryRule": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyGetPaymentMethodSnapshot"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "done": true,
                      "records": {},
                      "size": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyNoDataResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Retrieve a payment method snapshot",
        "tags": [
          "Payment Method Snapshots"
        ]
      }
    },
    "/v1/object/payment-method-transaction-log/{id}": {
      "get": {
        "description": "Retrieves a Payment Method Transaction Log object.",
        "operationId": "Object_GETPaymentMethodTransactionLog",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "Object fields to return",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Object id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyGetPaymentMethodTransactionLog"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "done": true,
                      "records": {},
                      "size": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyNoDataResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Retrieve a payment method transaction log",
        "tags": [
          "Payment Method Transaction Logs"
        ]
      }
    },
    "/v1/payment-method-updaters": {
      "get": {
        "description": "Retrieves the detailed information of all Payment Method Updater (PMU) instances on your tenant, except for American Express (AMEX).\n",
        "operationId": "GET_PaymentMethodUpdaterInstances",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true,
                      "updaters": [
                        {
                          "daysToUpdateBeforeBcd": 7,
                          "id": "418734b01fbb11ee821f0e4e5eec84cf",
                          "isActive": true,
                          "isDefault": true,
                          "isTest": true,
                          "processAssociatedGwOnly": true,
                          "processAutopayDefaultPmOnly": true,
                          "processMastercard": true,
                          "processVisa": true,
                          "updaterGatewayType": "CyberSource",
                          "updaterName": "CyberSourceUpdater"
                        },
                        {
                          "daysToUpdateBeforeBcd": 8,
                          "id": "418739741fbb11ee821f0e4e5eec84cf",
                          "isActive": true,
                          "isDefault": false,
                          "isTest": true,
                          "processAssociatedGwOnly": true,
                          "processAutopayDefaultPmOnly": true,
                          "processMastercard": true,
                          "processVisa": true,
                          "updaterGatewayType": "WorldPay",
                          "updaterName": "WorldPayUpdater"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentMethodUpdaterInstancesResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List Payment Method Updater instances",
        "tags": [
          "Payment Method Updater"
        ]
      }
    },
    "/v1/payment-method-updaters/batches": {
      "post": {
        "description": "Creates a Payment Method Updater (PMU) batch asynchronously. PMU for American Express (AMEX) is not supported.\n",
        "operationId": "POST_PaymentMethodUpdaterBatch",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTPaymentMethodUpdaterBatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTPaymentMethodUpdaterResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a Payment Method Updater batch asynchronously",
        "tags": [
          "Payment Method Updater"
        ]
      }
    },
    "/v1/rsa-signatures": {
      "post": {
        "description": "The REST API used in Payment Pages 2.0 are CORS (Cross-Origin Resource Sharing) enabled and therefore requires a digital signature. The POST rsa_signatures call generates and returns the required digital signature and token for a Payment Pages 2.0 form. You need to pass the generated signature to your client for it to access Payment Pages 2.0. \n    \nThis REST service should be used only when you implement Payment Pages 2.0. \n\n**Note:** To avoid potential credit card fraud attacks, you should secure your Payment Pages from being accessed by fraudulent users before you issue client-side digital signatures and tokens. See [Manage Token Issuance](https://knowledgecenter.zuora.com/CB_Billing/LA_Hosted_Payment_Pages/B_Payment_Pages_2.0/F_Generate_the_Digital_Signature_for_Payment_Pages_2.0#Manage_Token_Issuance) for more information.\n\n**Troubleshooting tip:** After you use this operation to generate an RSA signature, if `signature` returns `null` but `token` is successfully returned, please limit the number of the fields in your request to make sure that the maximum length supported by the RSA signature algorithm is not exceeded. The calculation of the request length is determined by the number of the parameters, and the length of each of the parameter name and its value.\n",
        "operationId": "POST_RSASignatures",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTRSASignatureType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmWRFTwxQOqaG4JDZSQF/NJWvCDoSXm3TYilNzoN8nBbuvhKa7SZBBS+VP6rFqcbIU38Fu+Rf09vqyYOxuasPJe7yhqeOiStWB/aCPLhwXBeKt37L/qkwpNOKb1FETtUgrc+UjbtT0pnl55wCfi+Ik//X5SQi0B+c0ei1DQv99qmPJJErrhnBtdxeaWAT0EYAo42AOQ5cp0UWDY6OdOYL6+RyFOUFIs1yEgtfg4VMMSpSOKBOhYclQYuSC7nBF5Cc18ydtzsBpf7l49gCLTFzG45NCDAocada8KihFNpGXbauV9V4EPRD4lofaXdsXJ5Tw8/+KCsrUlvIQI3vcEv9LQIDAQAB",
                      "signature": "VpCAFL2hHC2irxbhWYGLJmdBigjARsCStwHZiQ78z5LyVuBCFr2lkie0db/7E8n38MXaq12Ng5As5Qj+9Nhz6RBsSEWLod7c7hvwNI28OcgBZtcV/wscbWU69EP/+/XrQnF3ZUbHbqmcmhE8C/zNnc2zvHckfArroDW2HxxmATfMJS0xKUm5TrHi4tiILZVMYY1KIUqQTyuXV6uRWYzkqMkFkZDNCxSxf0XwzuBI/VOgTCmFZb0c3+bk/q6+7d/azFCrrg8C3dquCNJRfUeaBou+SLUa4TW3hV4rGd2zpvSrD/425x4qFNGV6JQ7wvIleIdrXU4qbh9nCmYoApMODA==",
                      "success": true,
                      "tenantId": "12270",
                      "token": "E2BJEle7YrAlw93SjkaKthTmzMvXF341"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTRSASignatureResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Generate an RSA signature",
        "tags": [
          "RSA Signatures"
        ]
      }
    },
    "/v1/rsa-signatures/decrypt": {
      "post": {
        "description": "The REST API used in Payment Pages 2.0 are CORS (Cross-Origin Resource Sharing) enabled and therefore requires a digital signature. You use rsa_signatures to generate the required digital signature and token for a Payment Pages 2.0 form, and then you use the decrypt REST service to decrypt the signature to validate the signature and key.\n\nThis REST service should be used only when you implement Payment Pages 2.0. \n",
        "operationId": "POST_DecryptRSASignatures",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTDecryptionType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "decryptedSignature": "/apps/publichostedpagelite.do#12270#tpyeSbjfUdpZpY4EMSCy7CrupvuhIdvM#1473658419005#2c92c0f855e2b4630155ec9e6a1b6eec",
                      "publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmWRFTwxQOqaG4JDZSQF/NJWvCDoSXm3TYilNzoN8nBbuvhKa7SZBBS+VP6rFqcbIU38Fu+Rf09vqyYOxuasPJe7yhqeOiStWB/aCPLhwXBeKt37L/qkwpNOKb1FETtUgrc+UjbtT0pnl55wCfi+Ik//X5SQi0B+c0ei1DQv99qmPJJErrhnBtdxeaWAT0EYAo42AOQ5cp0UWDY6OdOYL6+RyFOUFIs1yEgtfg4VMMSpSOKBOhYclQYuSC7nBF5Cc18ydtzsBpf7l49gCLTFzG45NCDAocada8KihFNpGXbauV9V4EPRD4lofaXdsXJ5Tw8/+KCsrUlvIQI3vcEv9LQIDAQAB",
                      "signature": "BeNYuHFkp/sbfm3clYyCkKEqd7XVTRDOJ1/5rL0tpkqxiSq+maqYkDz5kA+lN64ipoefQuJ7Rdm5TpICErufeJfa2sfTmGARDJ0hr+StXfLsIxHmDoNH5dqcXv3W6MR4kaljEqPVuhzGQ0We98DG52JcHWqqN53oHwTyuZuXocQqnmiE23IPm8UrU3g4hX/OLat0R81wDQ1SslZ+4pnqlncpTpopCK4FxeG3B0gYMhZcYd17Cmf0N3tEHVXHDlJIm4rOx0OVT+YBnjbKYLM0jxYu7PRKRis+yzN1BoappOEB0gmPjznIeiYF0u/fJdZWoEwK7d9mrfJeOBbpFyRoHA==",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTDecryptResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Decrypt an RSA signature",
        "tags": [
          "RSA Signatures"
        ]
      }
    },
    "/v1/hostedpages": {
      "get": {
        "description": "Returns the Payment Pages configuration metadata,\nspecifically, page ID, page version, payment method type.\n\nThe following are the version-specific and general REST requests for Payment Pages:\n\n* The request for Payment Pages 2.0 configuration information: `GET <BaseURL>/hostedpages?version=2`\n* The request for all versions of Payment Pages configuration information: `GET <BaseURL>/hostedpages`\n\n### Notes\nIf you do not have the corresponding tenant setting enabled, such as specifying the request `version` parameter to 2 but disabliing Payment Pages 2.0, you will receive an error.\n",
        "operationId": "Get_HostedPages",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Version of the Payment Pages for which you want to retrieve the configuration information. Specify 2 for Payment Pages 2.0.\n",
            "in": "query",
            "name": "versionNumber",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "hostedpages": [
                        {
                          "pageId": "8a85858f49a3f2230149abccaa2e004a",
                          "pageType": "ACH",
                          "pageVersion": 2
                        },
                        {
                          "pageId": "8a85858f49a3f2230149abcd99090057",
                          "pageType": "Bank Transfer",
                          "pageVersion": 2
                        },
                        {
                          "pageId": "8a85858f49a3f2230149a71083d40019",
                          "pageType": "Credit Card",
                          "pageVersion": 2
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GetHostedPagesType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List hosted pages",
        "tags": [
          "Hosted Pages"
        ]
      }
    },
    "/open-payment-method-types": {
      "post": {
        "description": "Creates a draft version of a custom payment method type. Revision number 1 is assigned to this version. You can update your draft version through the [Update a custom payment method type](https://developer.zuora.com/api-references/api/operation/PUT_UpdateOpenPaymentMethodType/) operation. You must publish your draft version through the [Publish a custom payment method type](https://developer.zuora.com/api-references/api/operation/PUT_PublishOpenPaymentMethodType/) operation before your custom payment method type goes live.\n",
        "operationId": "POST_CreateDraftOpenPaymentMethodType",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTCreateOpenPaymentMethodTypeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "paymentMethodType": "AmazonPay__C_12368",
                      "publishDate": "",
                      "revision": 1,
                      "status": "Draft"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTCreateOpenPaymentMethodTypeResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a draft custom payment method type",
        "tags": [
          "Custom Payment Method Types"
        ]
      }
    },
    "/open-payment-method-types/publish/{paymentMethodTypeName}": {
      "put": {
        "description": "Publish the latest draft revision of a specific custom payment method type.\n",
        "operationId": "PUT_PublishOpenPaymentMethodType",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The API name of the custom payment method type, such as `AmazonPay__c_12368`.\n",
            "in": "path",
            "name": "paymentMethodTypeName",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "entityId": "",
                      "fields": [
                        {
                          "checksum": true,
                          "defaultValue": null,
                          "description": "The Token value",
                          "editable": true,
                          "index": 1,
                          "label": "AmazonToken",
                          "maxLength": 100,
                          "minLength": 1,
                          "name": "AmazonToken",
                          "representer": true,
                          "required": true,
                          "type": "string",
                          "visible": true
                        },
                        {
                          "checksum": true,
                          "defaultValue": null,
                          "description": "The Type of Token, e.g. GoCardlessToken",
                          "editable": true,
                          "index": 2,
                          "label": "Amazon TokenType",
                          "maxLength": 100,
                          "minLength": 1,
                          "name": "AmazonTokenType",
                          "representer": true,
                          "required": true,
                          "type": "string",
                          "visible": true
                        }
                      ],
                      "internalName": "AmazonPay",
                      "label": "ZuoraQA Amazon Pay",
                      "methodReferenceIdField": "AmazonToken",
                      "revision": 1,
                      "status": "Published",
                      "subTypeField": "AmazonTokenType",
                      "tenantId": "9",
                      "userReferenceIdField": "AmazonAccount",
                      "version": "2021-11-22"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTPublishOpenPaymentMethodTypeResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Publish a custom payment method type",
        "tags": [
          "Custom Payment Method Types"
        ]
      }
    },
    "/open-payment-method-types/{paymentMethodTypeName}": {
      "put": {
        "description": "Update the latest draft version of your custom payment method type. If the latest draft version has been published, the revision number is increased by 1 after the draft version is updated. You must publish your latest revision again through the [Publish a custom payment method type](https://developer.zuora.com/api-references/api/operation/PUT_PublishOpenPaymentMethodType/) operation before your updated custom payment method type goes live.\n\n**Note**: In the request body, provide all the fields that define this custom payment method type including fields to be updated and the unchanged fields.\n",
        "operationId": "PUT_UpdateOpenPaymentMethodType",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The API name of the custom payment method type, such as `AmazonPay__c_12368`.\n",
            "in": "path",
            "name": "paymentMethodTypeName",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTUpdateOpenPaymentMethodTypeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "paymentMethodType": "AmazonPay__c_12368",
                      "publishDate": "",
                      "revision": 2,
                      "status": "Draft"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTUpdateOpenPaymentMethodTypeResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a custom payment method type",
        "tags": [
          "Custom Payment Method Types"
        ]
      }
    },
    "/open-payment-method-types/{paymentMethodTypeName}/draft/{revisionNumber}": {
      "get": {
        "description": "Retrieves a specific draft revision of a custom payment method type.\n",
        "operationId": "GET_OpenPaymentMethodTypeRevision",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The API name of the custom payment method type, such as `AmazonPay__c_12368`.\n",
            "in": "path",
            "name": "paymentMethodTypeName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The revision number of the draft revision to be retrieved.\n",
            "in": "path",
            "name": "revisionNumber",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "entityId": "f707d981-3ad2-4484-9c24-a93bf6b83411",
                      "fields": [
                        {
                          "checksum": true,
                          "defaultValue": null,
                          "description": "The Token value",
                          "editable": true,
                          "index": 1,
                          "label": "AmazonToken",
                          "maxLength": 100,
                          "minLength": 1,
                          "name": "AmazonToken",
                          "representer": true,
                          "required": true,
                          "type": "string",
                          "visible": true
                        },
                        {
                          "checksum": true,
                          "defaultValue": null,
                          "description": "The Type of Token, e.g. GoCardlessToken",
                          "editable": true,
                          "index": 2,
                          "label": "Amazon TokenType",
                          "maxLength": 100,
                          "minLength": 1,
                          "name": "AmazonTokenType",
                          "representer": true,
                          "required": true,
                          "type": "string",
                          "visible": true
                        }
                      ],
                      "internalName": "AmazonPay",
                      "label": "ZuoraQA Amazon Pay",
                      "methodReferenceIdField": "AmazonToken",
                      "revision": 1,
                      "status": "Published",
                      "subTypeField": "AmazonTokenType",
                      "tenantId": "9",
                      "userReferenceIdField": "AmazonAccount",
                      "version": "2021-11-22"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETOpenPaymentMethodTypeRevisionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a specific draft revision of a custom payment method type",
        "tags": [
          "Custom Payment Method Types"
        ]
      }
    },
    "/open-payment-method-types/{paymentMethodTypeName}/published": {
      "get": {
        "description": "Retrieves a published custom payment method type.\n",
        "operationId": "GET_OpenPaymentMethodTypePublish",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The API name of the custom payment method type, such as `AmazonPay__c_12368`.\n",
            "in": "path",
            "name": "paymentMethodTypeName",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "entityId": "f707d981-3ad2-4484-9c24-a93bf6b83411",
                      "fields": [
                        {
                          "checksum": true,
                          "defaultValue": null,
                          "description": "The Token value",
                          "editable": true,
                          "index": 1,
                          "label": "AmazonToken",
                          "maxLength": 100,
                          "minLength": 1,
                          "name": "AmazonToken",
                          "representer": true,
                          "required": true,
                          "type": "string",
                          "visible": true
                        },
                        {
                          "checksum": true,
                          "defaultValue": null,
                          "description": "The Type of Token, e.g. GoCardlessToken",
                          "editable": true,
                          "index": 2,
                          "label": "Amazon TokenType",
                          "maxLength": 100,
                          "minLength": 1,
                          "name": "AmazonTokenType",
                          "representer": true,
                          "required": true,
                          "type": "string",
                          "visible": true
                        }
                      ],
                      "internalName": "AmazonPay",
                      "label": "ZuoraQA Amazon Pay",
                      "methodReferenceIdField": "AmazonToken",
                      "revision": 1,
                      "status": "Published",
                      "subTypeField": "AmazonTokenType",
                      "tenantId": "9",
                      "userReferenceIdField": "AmazonAccount",
                      "version": "2021-11-22"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETOpenPaymentMethodTypeRevisionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a published custom payment method type",
        "tags": [
          "Custom Payment Method Types"
        ]
      }
    },
    "/v1/payment-methods/{payment-method-id}/authorize": {
      "post": {
        "description": "Enables you to authorize the availability of funds for a transaction but delay the capture of funds until a later time. Subsequently, use [Create a payment](https://developer.zuora.com/api-references/api/operation/POST_CreatePayment) or [Create an order](https://developer.zuora.com/api-references/api/operation/POST_Order/) to capture the authorized funds, or use [Cancel authorization](https://developer.zuora.com/api-references/api/operation/POST_CancelAuthorization) to cancel the authorization. \n\nFor gateway integrations that support this operation, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/DB_Delayed_Capture\" target=\"_blank\">Delayed Capture</a>.\n      \n",
        "operationId": "POST_CreateAuthorization",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of the payment method where the authorization is created.\n",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTDelayAuthorizeCapture"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/POSTAuthorizeResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create authorization",
        "tags": [
          "Payment Authorization"
        ]
      }
    },
    "/v1/payment-methods/{payment-method-id}/voidAuthorize": {
      "post": {
        "description": "Allows you to cancel an authorization. For gateway integrations that support this operation, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/DB_Delayed_Capture\" target=\"_blank\">Delayed Capture</a>.\n",
        "operationId": "POST_CancelAuthorization",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of the payment method where the authorization is cancelled.\n",
            "in": "path",
            "name": "payment-method-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTVoidAuthorize"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/POSTVoidAuthorizeResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel authorization",
        "tags": [
          "Payment Authorization"
        ]
      }
    },
    "/v1/paymentgateways": {
      "get": {
        "description": "Retrieves the basic information about all the payment gateways.\n",
        "operationId": "GET_Paymentgateways",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "paymentgateways": [
                        {
                          "id": "4028905f5702783601570291e14c0015",
                          "isActive": true,
                          "isDefault": true,
                          "name": "Test Gateway Adapter",
                          "type": "Test Gateway"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentGatwaysResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all payment gateways",
        "tags": [
          "Payment Gateways"
        ]
      }
    },
    "/v1/payment-gateways/pre-debit-notification": {
      "post": {
        "description": "To support processing recurring UPI payments through Adyen Integration v2.0, \na pre-debit notification for each posted invoice must be sent to the UPI users \nbefore collecting the recurring payments. Use this operation to send pre-debit notification requests \nto the gateway for invoices that meet the requirements. \nSee <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Supported_payment_gateways/Adyen_Payment_Gateway/I1_Implement_UPI_on_Adyen_Integration_v2.0#Recurring_payments_flow\" target=\"_blank\">Implement UPI on Adyen Integration v2.0</a> for more information.\n\nBefore using this operation, ensure the following prerequisites are met:\n  - <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Supported_payment_gateways/Adyen_Payment_Gateway/I1_Implement_UPI_on_Adyen_Integration_v2.0\" target=\"_blank\">Support for UPI transactions on Adyen</a> has been enabled. This is a feature that can be requested through the Specialized Payment Connections service at an additional cost.\n  - Ensure the <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_gateway_integrations/Supported_payment_gateways/Adyen_Payment_Gateway/I1_Implement_UPI_on_Adyen_Integration_v2.0#Recurring_payments_flow\" target=\"_blank\">conditions for triggering pre-debit notification requests</a> are met.\n",
        "operationId": "triggerPreDebitNotification",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostTriggerPreDebitNotificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostTriggerPreDebitNotificationResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "98F4A32E685BABCD",
                      "reasons": [
                        {
                          "code": "52307120",
                          "message": "Pre debit notification has already been sent for the invoice with ID:c2289d0a8d3af0f2018d3b2b1fdb00b2"
                        }
                      ],
                      "requestId": "b74fe34e-083c-4386-8284-ce1685a00000",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Trigger a pre-debit notification",
        "tags": [
          "Payment Gateways"
        ]
      }
    },
    "/v1/gateway-settlement/payments/{payment-key}/chargeback": {
      "post": {
        "description": "If the <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/DA_Electronic_Payment_Processing#Asynchronous_payment_flow\"\ntarget=\"_blank\">Asynchronous Payment Statuses</a> feature is not enabled, this\nAPI operation sets the Gateway State field of the payment to `Settled`, creates\na refund for the amount specified in the request, and returns the Refund object\nas response.\n\n\nIf the Asynchronous Payment Statuses feature is enabled, for ACH and Bank Transfer\npayments that are reversed before they are settled, this API operation sets the\nPayment Status field to `Processed`, sets the Gateway State field of the payment\nto `Settled`, creates an external refund for the amount specified in the request,\nand returns the Refund object as response.\n\nIf the reason code \"Payment Reversal\" is active in the <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/Reason_Codes_for_Payment_Operations/B_Creating_and_Editing_Reason_Codes\"\ntarget=\"_blank\">Reason Codes</a> list, the reason code of the external refund is set to \"Payment Reversal\". Otherwise, the default reason code in the list is used.\n",
        "operationId": "POST_ReversePayment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The payment number starting with \"P-\" or the unique payment ID.",
            "in": "path",
            "name": "payment-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTReversePaymentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad0987e92f64ccb01931a35c06b46d6",
                      "number": "R-00000027",
                      "status": "Processed",
                      "type": "External",
                      "methodType": "CreditCard",
                      "accountId": "8ad09bce83f1da020183f97e245c1c47",
                      "amount": 10,
                      "refundDate": "2024-11-11",
                      "comment": null,
                      "paymentMethodId": "8ad09bce83f1da020183f97e24821c4b",
                      "paymentMethodSnapshotId": null,
                      "paymentId": "8ad0943792d670bc0192dc396bac151f",
                      "paymentNumber": "P-00001538",
                      "creditMemoId": null,
                      "reasonCode": "Payment Reversal",
                      "gatewayId": null,
                      "paymentGatewayNumber": null,
                      "gatewayResponse": null,
                      "gatewayResponseCode": null,
                      "gatewayState": "Settled",
                      "markedForSubmissionOn": null,
                      "referenceId": null,
                      "secondRefundReferenceId": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "submittedOn": null,
                      "settledOn": "2024-11-11 15:52:30",
                      "cancelledOn": null,
                      "createdDate": "2024-11-11 15:52:30",
                      "createdById": "8ad084a67f9c7138017fab8a8b511b5a",
                      "updatedDate": "2024-11-11 15:52:30",
                      "updatedById": "8ad084a67f9c7138017fab8a8b511b5a",
                      "refundTransactionTime": null,
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "unappliedPaymentAccountingCode": "Accounts Receivable",
                        "unappliedPaymentAccountingCodeType": "AccountsReceivable",
                        "transferredToAccounting": false
                      },
                      "gatewayReconciliationStatus": null,
                      "gatewayReconciliationReason": null,
                      "payoutId": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTReversePaymentResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Reverse a payment",
        "tags": [
          "Payment Gateway Reconciliation"
        ]
      }
    },
    "/v1/gateway-settlement/payments/{payment-key}/reject": {
      "post": {
        "description": "If the <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/DA_Electronic_Payment_Processing#Asynchronous_payment_flow\"\ntarget=\"_blank\">Asynchronous Payment Statuses</a> feature is not enabled, this\nAPI operation sets the Gateway State field of the payment to `FailedToSettle`,\ncreates a refund for the payment amount, and returns the Refund object as response.\n\n\nIf the Asynchronous Payment Statuses feature is enabled, for ACH and Bank Transfer\npayments, this API operation sets the Payment Status field to `Error` and the\nGateway State field to `FailedToSettle`, and unapply the payment if it is already\napplied.\n\nIf the reason code \"Payment Rejection\" is active in the <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/Reason_Codes_for_Payment_Operations/B_Creating_and_Editing_Reason_Codes\"\ntarget=\"_blank\">Reason Codes</a> list, the reason code of the external refund is set to \"Payment Rejection\". Otherwise, the default reason code in the list is used.\n",
        "operationId": "POST_RejectPayment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The payment number starting with \"P-\" or the unique payment ID.",
            "in": "path",
            "name": "payment-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTRejectPaymentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad0875992e093310192e70ccaa0589b",
                      "number": "R-00000026",
                      "status": "Processed",
                      "type": "External",
                      "methodType": "CreditCard",
                      "accountId": "8ad09bce83f1da020183f97e245c1c47",
                      "amount": 10,
                      "refundDate": "2024-11-01",
                      "comment": null,
                      "paymentMethodId": "8ad09bce83f1da020183f97e24821c4b",
                      "paymentMethodSnapshotId": null,
                      "paymentId": "8ad0987e92e0a44a0192e646f4de27b1",
                      "paymentNumber": "P-00001539",
                      "creditMemoId": null,
                      "reasonCode": "Payment Rejection",
                      "gatewayId": null,
                      "paymentGatewayNumber": null,
                      "gatewayResponse": null,
                      "gatewayResponseCode": null,
                      "gatewayState": "Settled",
                      "markedForSubmissionOn": null,
                      "referenceId": null,
                      "secondRefundReferenceId": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "submittedOn": null,
                      "settledOn": "2024-11-01 17:27:08",
                      "cancelledOn": null,
                      "createdDate": "2024-11-01 17:27:08",
                      "createdById": "8ad084a67f9c7138017fab8a8b511b5a",
                      "updatedDate": "2024-11-01 17:27:08",
                      "updatedById": "8ad084a67f9c7138017fab8a8b511b5a",
                      "refundTransactionTime": null,
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "unappliedPaymentAccountingCode": "Accounts Receivable",
                        "unappliedPaymentAccountingCodeType": "AccountsReceivable",
                        "transferredToAccounting": false
                      },
                      "gatewayReconciliationStatus": null,
                      "gatewayReconciliationReason": null,
                      "payoutId": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTRejectPaymentResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Reject a payment",
        "tags": [
          "Payment Gateway Reconciliation"
        ]
      }
    },
    "/v1/gateway-settlement/payments/{payment-key}/settle": {
      "post": {
        "description": "If the <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Operations/DA_Electronic_Payment_Processing#Asynchronous_payment_flow\" target=\"_blank\">Asynchronous Payment Statuses</a> feature is not enabled, this API operation sets the Gateway State field of the payment to `Settled` and returns the Payment object as response.\n\nIf the Asynchronous Payment Statuses feature is enabled, for ACH and Bank Transfer payments, this API operation sets the Payment Status field to `Processed` and the Gateway State field to `Settled`.\n",
        "operationId": "POST_SettlePayment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The payment number starting with \"P-\" or the unique payment ID.",
            "in": "path",
            "name": "payment-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTSettlePaymentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad097b490c4e5aa0190d937784723b5",
                      "number": "P-00000020",
                      "status": "Processed",
                      "type": "Electronic",
                      "accountId": "8ad09be48db5aba7018db604776d4854",
                      "accountNumber": "A00000097",
                      "amount": 110.5,
                      "appliedAmount": 110.5,
                      "unappliedAmount": 0,
                      "refundAmount": 0,
                      "creditBalanceAmount": 0,
                      "currency": "USD",
                      "effectiveDate": "2024-07-21",
                      "comment": "",
                      "paymentMethodId": "8ad084db90a5e73b0190c02783f552fa",
                      "paymentMethodSnapshotId": "8ad097b490c4e5aa0190d937783e23b4",
                      "authTransactionId": null,
                      "bankIdentificationNumber": "411111",
                      "gatewayId": "2c92c0f972bc6aa90172bc77ccaf379a",
                      "paymentGatewayNumber": null,
                      "gatewayOrderId": null,
                      "gatewayResponse": "This transaction has been approved by Test gateway.",
                      "gatewayResponseCode": "approve",
                      "gatewayState": "Settled",
                      "markedForSubmissionOn": null,
                      "referenceId": "7290220.496916332",
                      "secondPaymentReferenceId": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "submittedOn": "2024-07-21 23:53:29",
                      "settledOn": "2024-07-21 23:54:38",
                      "cancelledOn": null,
                      "createdDate": "2024-07-21 23:53:29",
                      "createdById": "8ad09fc28193c189018194da28be74ba",
                      "updatedDate": "2024-07-21 23:54:38",
                      "updatedById": "b243314d594646d3b2651aeedd4be47e",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "unappliedPaymentAccountingCode": "Accounts Receivable",
                        "unappliedPaymentAccountingCodeType": "AccountsReceivable",
                        "transferredToAccounting": false
                      },
                      "gatewayReconciliationStatus": null,
                      "gatewayReconciliationReason": "paid",
                      "payoutId": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTSettlePaymentResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Settle a payment",
        "tags": [
          "Payment Gateway Reconciliation"
        ]
      }
    },
    "/v1/refunds/{refund-key}/reconcile": {
      "post": {
        "description": "Reconciles a refund when receiving the gateway reconciliation request or event.\n",
        "operationId": "POST_ReconcileRefund",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The refund number starting with “R-” or the unique refund ID.",
            "in": "path",
            "name": "refund-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTReconcileRefundRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/POSTReconcileRefundResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Reconcile a refund",
        "tags": [
          "Payment Gateway Reconciliation"
        ]
      }
    },
    "/v1/payments": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about all payments from all your customer accounts.\n\n### Filtering\n\nYou can use query parameters to restrict the data returned in the response. Each query parameter corresponds to one field in the response body.\n\nThe `unappliedAmount` or any other query parameter does not support the less than(<) and the greater than(>) operators.\n\nIf the value of a filterable field is string, you can set the corresponding query parameter to `null` when filtering. Then, you can get the response data with this field value being `null`.\n\nExamples:\n\n- /v1/payments?status=Processed\n\n- /v1/payments?currency=USD&status=Processed\n\n- /v1/payments?status=Processed&type=External&sort=+number\n",
        "operationId": "GET_RetrieveAllPayments",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "This parameter filters the response based on the `accountId` field.\n",
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `amount` field.\n",
            "in": "query",
            "name": "amount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `appliedAmount` field.\n",
            "in": "query",
            "name": "appliedAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdById` field.\n",
            "in": "query",
            "name": "createdById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdDate` field.\n",
            "in": "query",
            "name": "createdDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `creditBalanceAmount` field.\n",
            "in": "query",
            "name": "creditBalanceAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `currency` field.\n",
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `effectiveDate` field.\n",
            "in": "query",
            "name": "effectiveDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `number` field.\n",
            "in": "query",
            "name": "number",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `refundAmount` field.\n",
            "in": "query",
            "name": "refundAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `status` field.\n",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "Draft",
                "Processing",
                "Processed",
                "Error",
                "Canceled",
                "Posted"
              ],
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `type` field.\n",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "enum": [
                "External",
                "Electronic"
              ],
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `unappliedAmount` field.\n",
            "in": "query",
            "name": "unappliedAmount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedById` field.\n",
            "in": "query",
            "name": "updatedById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedDate` field.\n",
            "in": "query",
            "name": "updatedDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter restricts the order of the data returned in the response. You can use this parameter to supply a dimension you want to sort on.\n\nA sortable field uses the following form: \n\n*operator* *field_name*\n\nYou can use at most two sortable fields in one URL path. Use a comma to separate sortable fields. For example:  *operator* *field_name*, *operator* *field_name*  \n\n*operator* is used to mark the order of sequencing. The operator is optional. If you only specify the sortable field without any operator, the response data is sorted in descending order by payment effective date.\n\n  - The `-` operator indicates an ascending order.\n  - The `+` operator indicates a descending order.\n\nBy default, the response data is displayed in descending order by payment number.\n\n*field_name* indicates the name of a sortable field. The supported sortable fields of this operation are as below:\n\n  - number\n  - accountId\n  - amount\n  - appliedAmount\n  - unappliedAmount\n  - refundAmount\n  - creditBalanceAmount\n  - effectiveDate\n  - createdDate\n  - createdById\n  - updatedDate\n  - updatedById\n\n  \nExamples:\n\n- /v1/payments?sort=+number\n\n- /v1/payments?status=Processed&sort=-number,+amount\n",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "payments": [
                        {
                          "accountId": "4028905f5a87c0ff015a87d25ae90025",
                          "accountNumber": "A00000001",
                          "amount": 44.1,
                          "appliedAmount": 44.1,
                          "authTransactionId": null,
                          "bankIdentificationNumber": null,
                          "cancelledOn": null,
                          "comment": "normal payment",
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 11:30:37",
                          "creditBalanceAmount": 0,
                          "currency": "USD",
                          "effectiveDate": "2017-03-01",
                          "financeInformation": {
                            "bankAccountAccountingCode": null,
                            "bankAccountAccountingCodeType": null,
                            "transferredToAccounting": "No",
                            "unappliedPaymentAccountingCode": null,
                            "unappliedPaymentAccountingCodeType": null
                          },
                          "gatewayId": null,
                          "gatewayOrderId": null,
                          "gatewayReconciliationReason": null,
                          "gatewayReconciliationStatus": null,
                          "gatewayResponse": null,
                          "gatewayResponseCode": null,
                          "gatewayState": "NotSubmitted",
                          "id": "4028905f5a87c0ff015a87eb6b75007f",
                          "markedForSubmissionOn": null,
                          "number": "P-00000001",
                          "paymentGatewayNumber": "PG-00000001",
                          "paymentMethodId": "402881e522cf4f9b0122cf5dc4020045",
                          "paymentMethodSnapshotId": null,
                          "payoutId": null,
                          "referenceId": null,
                          "refundAmount": 0,
                          "secondPaymentReferenceId": null,
                          "settledOn": null,
                          "softDescriptor": null,
                          "softDescriptorPhone": null,
                          "status": "Processed",
                          "submittedOn": null,
                          "type": "External",
                          "unappliedAmount": 0,
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 11:30:37"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PaymentCollectionResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List payments",
        "tags": [
          "Payments"
        ]
      },
      "post": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nCreates a payment in the following scenarios:\n\n- A full or partial payment on an invoice or a debit memo\n- A full or partial payment on several invoices and debit memos\n- An unapplied payment in the following situations:\n  - You do not know which customer account the payment belongs to.\n  - You know which customer account the payment belongs to, but you do not know which invoice the payment is applied to.\n  - You receive a payment from your customer that exceeds the balance on the invoice.\n  - You receive a payment from your customer before the invoice has been created.\n  - You intend to create a payment without any invoices or debit memos.\n- A standalone payment. If you only need to create and process an electronic payment in Zuora through a Zuora gateway integration but settle the payment outside of Zuora, you can create a standalone payment. For a standalone payment, you can specify a currency different from the payment currency in the customer account settings. When Standalone Payment is not enabled, the currency of the standalone payment can be different from the payment currency defined in the customer account settings if you have the [Multiple Currencies](https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Flexible_Billing/Multiple_Currencies) feature enabled. \n\n  \n\n\nIf you do not know to which customer account the payment belongs, you can create a payment without specifying a customer account.\n\nWhen you create a payment, the total number of invoice items and debit memo items that the payment will apply to should be less than or equal to 15,000.\n\nFor more information, see [Create Payments](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/AA_Create_Payments) and [Create Payments Without Specifying Customer Accounts](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/AA_Create_Payments_Without_Specifying_Customer_Accounts).\n    \n",
        "operationId": "POST_CreatePayment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8a90a04d914ac24801914b29e47f0777",
                      "number": "P-00000389",
                      "status": "Processed",
                      "type": "External",
                      "accountId": "8a90b4488e7d5c0f018e7db3892400b2",
                      "accountNumber": "A00000370",
                      "amount": 14.99,
                      "appliedAmount": 14.99,
                      "unappliedAmount": 0,
                      "refundAmount": 0,
                      "creditBalanceAmount": 0,
                      "currency": "USD",
                      "effectiveDate": "2024-08-13",
                      "comment": null,
                      "paymentMethodId": "2c92c8f95e2d6ebb015e325df7a70356",
                      "paymentMethodSnapshotId": null,
                      "authTransactionId": null,
                      "bankIdentificationNumber": null,
                      "gatewayId": null,
                      "paymentGatewayNumber": null,
                      "gatewayOrderId": null,
                      "gatewayResponse": null,
                      "gatewayResponseCode": null,
                      "gatewayState": "NotSubmitted",
                      "markedForSubmissionOn": null,
                      "referenceId": null,
                      "secondPaymentReferenceId": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "submittedOn": null,
                      "settledOn": null,
                      "cancelledOn": null,
                      "createdDate": "2024-08-13 17:55:22",
                      "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "updatedDate": "2024-08-13 17:55:22",
                      "updatedById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "unappliedPaymentAccountingCode": null,
                        "unappliedPaymentAccountingCodeType": null,
                        "transferredToAccounting": false
                      },
                      "gatewayReconciliationStatus": null,
                      "gatewayReconciliationReason": null,
                      "payoutId": null,
                      "prepayment": false,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETARPaymentTypeWithPaymentOption"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a payment",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/payments/{paymentKey}": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nUpdates a payment.\n",
        "operationId": "PUT_UpdatePayment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1` or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePaymentType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028905f5a87c0ff015a88889fe500a8",
                      "accountNumber": "A00000001",
                      "amount": 44.1,
                      "appliedAmount": 0,
                      "authTransactionId": null,
                      "bankIdentificationNumber": null,
                      "cancelledOn": null,
                      "comment": "Details about this payment",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 11:30:37",
                      "creditBalanceAmount": 0,
                      "currency": "USD",
                      "effectiveDate": "2017-03-01",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "transferredToAccounting": "No",
                        "unappliedPaymentAccountingCode": null,
                        "unappliedPaymentAccountingCodeType": null
                      },
                      "gatewayId": null,
                      "gatewayOrderId": null,
                      "gatewayReconciliationReason": null,
                      "gatewayReconciliationStatus": null,
                      "gatewayResponse": null,
                      "gatewayResponseCode": null,
                      "gatewayState": "NotSubmitted",
                      "id": "4028905f5a87c0ff015a87eb6b75007f",
                      "markedForSubmissionOn": null,
                      "number": "P-00000001",
                      "paymentGatewayNumber": "PG-00000001",
                      "paymentMethodId": "402881e522cf4f9b0122cf5dc4020045",
                      "paymentMethodSnapshotId": null,
                      "payoutId": null,
                      "referenceId": null,
                      "refundAmount": 0,
                      "secondPaymentReferenceId": null,
                      "settledOn": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "status": "Processed",
                      "submittedOn": null,
                      "success": true,
                      "type": "External",
                      "unappliedAmount": 44.1,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 14:25:34"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETARPaymentType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a payment",
        "tags": [
          "Payments"
        ]
      },
      "delete": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nDeletes a payment. Only payments with the Cancelled status can be deleted. \n\nIf you have the Invoice Settlement feature enabled, overpayments applied to credit balance cannot be deleted.\n",
        "operationId": "DELETE_Payment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a payment",
        "tags": [
          "Payments"
        ]
      },
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about one specific payment.\n",
        "operationId": "GET_Payment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028905f5a87c0ff015a87d25ae90025",
                      "accountNumber": "A00000001",
                      "amount": 44.1,
                      "appliedAmount": 44.1,
                      "authTransactionId": null,
                      "bankIdentificationNumber": null,
                      "cancelledOn": null,
                      "comment": "normal payment",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 11:30:37",
                      "creditBalanceAmount": 0,
                      "currency": "USD",
                      "effectiveDate": "2017-03-01",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "transferredToAccounting": "No",
                        "unappliedPaymentAccountingCode": null,
                        "unappliedPaymentAccountingCodeType": null
                      },
                      "gatewayId": null,
                      "gatewayOrderId": null,
                      "gatewayReconciliationReason": null,
                      "gatewayReconciliationStatus": null,
                      "gatewayResponse": null,
                      "gatewayResponseCode": null,
                      "gatewayState": "NotSubmitted",
                      "id": "4028905f5a87c0ff015a87eb6b75007f",
                      "markedForSubmissionOn": null,
                      "number": "P-00000001",
                      "paymentGatewayNumber": "PG-00000001",
                      "paymentMethodId": "402881e522cf4f9b0122cf5dc4020045",
                      "paymentMethodSnapshotId": null,
                      "payoutId": null,
                      "referenceId": null,
                      "refundAmount": 0,
                      "secondPaymentReferenceId": null,
                      "settledOn": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "status": "Processed",
                      "submittedOn": null,
                      "success": true,
                      "type": "External",
                      "unappliedAmount": 0,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 11:30:37"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETARPaymentType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a payment",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/payments/{paymentKey}/apply": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nApplies an unapplied payment to invoices and debit memos.\n\nWhen you apply a payment, the total number of invoice items and debit memo items that the payment will apply to must be less than or equal to 15,000.\n        \nIf the limit is hit, you can follow the instructions:\n- If you want to apply one payment to multiple invoices or debit memos, decrease the number of invoices or debit memos in the request.\n- If you want to apply one payment to a single invoice or debit memo with a large volume of items, you have to specify invoice items in the request. The maximum number of invoice items that you can specify in the request is 1,000.\n\nFor more information, see [Apply Unapplied Payments to Invoices and Debit Memos](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/Apply_Unapplied_Payments_to_Invoices_and_Debit_Memos).\n",
        "operationId": "PUT_ApplyPayment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyPaymentType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad0835290c4bb2f0190c9b5407c52a3",
                      "number": "P-00000018",
                      "status": "Processed",
                      "type": "External",
                      "accountId": "8ad097b490c4e5aa0190c9612d9c7034",
                      "accountNumber": "A00000122",
                      "amount": 14.99,
                      "appliedAmount": 12,
                      "unappliedAmount": 2.99,
                      "refundAmount": 0,
                      "creditBalanceAmount": 0,
                      "currency": "USD",
                      "effectiveDate": "2024-07-18",
                      "comment": null,
                      "paymentMethodId": "2c92c0f86cccaa59016cd5e0c41c0e89",
                      "paymentMethodSnapshotId": null,
                      "authTransactionId": null,
                      "bankIdentificationNumber": null,
                      "gatewayId": null,
                      "paymentGatewayNumber": null,
                      "gatewayOrderId": null,
                      "gatewayResponse": null,
                      "gatewayResponseCode": null,
                      "gatewayState": "NotSubmitted",
                      "markedForSubmissionOn": null,
                      "referenceId": null,
                      "secondPaymentReferenceId": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "submittedOn": null,
                      "settledOn": null,
                      "cancelledOn": null,
                      "createdDate": "2024-07-18 23:36:57",
                      "createdById": "b243314d594646d3b2651aeedd4be47e",
                      "updatedDate": "2024-07-18 23:41:55",
                      "updatedById": "b243314d594646d3b2651aeedd4be47e",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "unappliedPaymentAccountingCode": "Accounts Receivable",
                        "unappliedPaymentAccountingCodeType": "AccountsReceivable",
                        "transferredToAccounting": false
                      },
                      "gatewayReconciliationStatus": null,
                      "gatewayReconciliationReason": null,
                      "payoutId": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETARPaymentType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Apply a payment",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/payments/{paymentKey}/cancel": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nCancels a payment. \n\nIf you have the Invoice Settlement feature enabled, overpayments applied to credit balance cannot be cancelled.\n",
        "operationId": "PUT_CancelPayment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028905f5a87c0ff015a88889fe500a8",
                      "accountNumber": "A00000001",
                      "amount": 44.1,
                      "appliedAmount": 0,
                      "authTransactionId": null,
                      "bankIdentificationNumber": null,
                      "cancelledOn": null,
                      "comment": "new comment",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 11:30:37",
                      "creditBalanceAmount": 0,
                      "currency": "USD",
                      "effectiveDate": "2017-03-01",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "transferredToAccounting": "No",
                        "unappliedPaymentAccountingCode": null,
                        "unappliedPaymentAccountingCodeType": null
                      },
                      "gatewayId": null,
                      "gatewayOrderId": null,
                      "gatewayReconciliationReason": null,
                      "gatewayReconciliationStatus": null,
                      "gatewayResponse": null,
                      "gatewayResponseCode": null,
                      "gatewayState": "NotSubmitted",
                      "id": "4028905f5a87c0ff015a87eb6b75007f",
                      "markedForSubmissionOn": null,
                      "number": "P-00000001",
                      "paymentGatewayNumber": "PG-00000001",
                      "paymentMethodId": "402881e522cf4f9b0122cf5dc4020045",
                      "paymentMethodSnapshotId": null,
                      "payoutId": null,
                      "referenceId": null,
                      "refundAmount": 0,
                      "secondPaymentReferenceId": null,
                      "settledOn": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "status": "Canceled",
                      "submittedOn": null,
                      "success": true,
                      "type": "External",
                      "unappliedAmount": 44.1,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 14:26:57"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETARPaymentType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a payment",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/payments/{paymentKey}/parts": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about all parts of a payment. A payment can consist of an unapplied part, and several parts applied to invoices and debit memos. You can use this operation to get all the applied and unapplied portions of a payment. Note that a fully refunded payment does not contain any payment part.\n",
        "operationId": "GET_PaymentParts",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "parts": [
                        {
                          "amount": 4.1,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 11:30:37",
                          "debitMemoId": "4028905f5a87c0ff015a87e49e6b0062",
                          "id": "4028905f5a87c0ff015a87eb6beb008d",
                          "invoiceId": null,
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 11:30:37"
                        },
                        {
                          "amount": 40,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 11:30:37",
                          "debitMemoId": null,
                          "id": "4028905f5a87c0ff015a87eb6beb008c",
                          "invoiceId": "4028905f5a87c0ff015a87d3f8f10043",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 11:30:37"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentPartsCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all parts of a payment",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/payments/{paymentKey}/parts/{partid}": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about a specific payment part. A payment can consist of an unapplied part, and several parts applied to invoices and debit memos.\n\nA fully refunded payment does not contain any payment part.\n",
        "operationId": "GET_PaymentPart",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a specific payment part. You can get the payment part ID from the response of [List all parts of a payment](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentParts).\n",
            "in": "path",
            "name": "partid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amount": 4.1,
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 11:30:37",
                      "debitMemoId": "4028905f5a87c0ff015a87e49e6b0062",
                      "id": "4028905f5a87c0ff015a87eb6beb008d",
                      "invoiceId": null,
                      "success": true,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 11:30:37"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentPartType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a payment part",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/payments/{paymentKey}/parts/{partid}/item-parts": {
      "get": {
        "description": "**Note:** This operation is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos).  If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about all items of a payment part. A payment part item is a single line item in a payment part. A payment part can consist of several different types of items.\n",
        "operationId": "GET_PaymentItemParts",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The unique ID of a specific payment part. You can get the payment part ID from the response of [List all parts of a payment](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentParts).\n",
            "in": "path",
            "name": "partid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "itemParts": [
                        {
                          "amount": 4,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 11:30:37",
                          "debitMemoItemId": "4028905f5a87c0ff015a87e49e7a0063",
                          "id": "4028905f5a87c0ff015a87eb6bd8008a",
                          "invoiceItemId": null,
                          "taxItemId": null,
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 11:30:37"
                        },
                        {
                          "amount": 0.1,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 11:30:37",
                          "debitMemoItemId": null,
                          "id": "4028905f5a87c0ff015a87eb6bd8008b",
                          "invoiceItemId": null,
                          "taxItemId": "4028905f5a87c0ff015a87e49f5e0065",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 11:30:37"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentItemPartCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all payment part items",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/payments/{paymentKey}/parts/{partid}/item-parts/{itempartid}": {
      "get": {
        "description": "**Note:** This operation is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos).  If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nRetrieves the information about a specific payment part item. A payment part item is a single line item in a payment part. A payment part can consist of several different types of items.\n",
        "operationId": "GET_PaymentItemPart",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a specific payment part. You can get the payment part ID from the response of [List all parts of a payment](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentParts).\n",
            "in": "path",
            "name": "partid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID of a specific payment part item. You can get the payment part item ID from the response of [List all payment part items](https://www.zuora.com/developer/api-references/api/operation/GET_PaymentItemParts).\n",
            "in": "path",
            "name": "itempartid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amount": 4,
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 11:30:37",
                      "debitMemoItemId": "4028905f5a87c0ff015a87e49e7a0063",
                      "id": "4028905f5a87c0ff015a87eb6bd8008a",
                      "invoiceItemId": null,
                      "success": true,
                      "taxItemId": null,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 11:30:37"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentItemPartType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a payment part item",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/payments/{paymentKey}/refunds": {
      "post": {
        "description": "**Note:** This operation is only available if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide\" target=\"_blank\">Invoice Settlement Enablement and Checklist Guide</a> for more information. \n\nRefunds a full or partial unapplied payment to your customers. To refund applied payments, you must unapply the applied payments from the invoices or debit memos, and then refund the unapplied payments to customers. For more information on the payment refund use case, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Schedules/Payment_schedules_use_cases\" target=\"_blank\">Payment schedules use cases</a> in the Knowledge Center.\n\nFor more information, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/Y_Refund_Payments\" target=\"_blank\">Refund Payments</a>.\n",
        "operationId": "POST_RefundPayment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostRefundType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8a90a04d90de54810190debe8e3b5a2c",
                      "number": "R-00000287",
                      "status": "Processed",
                      "type": "Electronic",
                      "methodType": "CreditCard",
                      "accountId": "8a90b4488e7d5c0f018e7db3892400b2",
                      "amount": 10,
                      "refundDate": "2024-07-23",
                      "comment": null,
                      "paymentMethodId": "8a90e5e490c9ceb80190d8e9df930bf0",
                      "paymentMethodSnapshotId": "8a90a04d90de54810190debe8e0c5a29",
                      "paymentId": "8a90e5e490c9ceb80190d91837840c1d",
                      "paymentNumber": "P-00000387",
                      "creditMemoId": null,
                      "reasonCode": null,
                      "gatewayId": "8a90d6128ddbaf39018de2d9fe0d2660",
                      "paymentGatewayNumber": "PG-00000001",
                      "gatewayResponse": "Approved",
                      "gatewayResponseCode": "OK",
                      "gatewayState": "Submitted",
                      "markedForSubmissionOn": null,
                      "referenceId": null,
                      "secondRefundReferenceId": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "submittedOn": "2024-07-23 16:39:09",
                      "settledOn": null,
                      "cancelledOn": null,
                      "createdDate": "2024-07-23 16:39:08",
                      "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "updatedDate": "2024-07-23 16:39:12",
                      "updatedById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "refundTransactionTime": "2024-07-23 16:39:09",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "unappliedPaymentAccountingCode": null,
                        "unappliedPaymentAccountingCodeType": null,
                        "transferredToAccounting": false
                      },
                      "gatewayReconciliationStatus": null,
                      "gatewayReconciliationReason": null,
                      "payoutId": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRefundPaymentType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Refund a payment",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/payments/{paymentKey}/refunds/unapply": {
      "post": {
        "description": "**Note:** This operation is only available if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide\" target=\"_blank\">Invoice Settlement Enablement and Checklist Guide</a> for more information. \n\nRefunds a full or partial unapplied payment to your customers, without the need to unapply the payment first, followed by processing the refund. To refund applied payments, you can now leverage this API to unapply and refund the payment simultaneously. For more information on the payment refund use case, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Schedules/Payment_schedules_use_cases\" target=\"_blank\">Payment schedules use cases</a> in the Knowledge Center.\n\nFor more information, see  <a href=\"https://knowledgecenter.zuora.com/Zuora_Billing/Bill_your_customers/Adjust_invoice_amounts/Invoice_Settlement/Unapplied_Payments/Management_of_Unapplied_Payments/Refund_a_payment_with_auto-unapplying\" target=\"_blank\">Refund a payment with auto-unapplying</a>.",
        "operationId": "POST_RefundPaymentwithAutoUnapply",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostRefundwithAutoUnapplyType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8a90e4a79310d4b00193196d987670fe",
                      "number": "R-00000289",
                      "status": "Processed",
                      "type": "Electronic",
                      "methodType": "CreditCard",
                      "accountId": "8a90b4488e7d5c0f018e7db3892400b2",
                      "amount": 10,
                      "refundDate": "2024-11-11",
                      "comment": null,
                      "paymentMethodId": "8a90b44890c9bb0d0190d960b9191eea",
                      "paymentMethodSnapshotId": "8a90e4a79310d4b00193196d981370fb",
                      "paymentId": "8a90f26f92f732c70192fb5323d227ad",
                      "paymentNumber": "P-00000394",
                      "creditMemoId": null,
                      "reasonCode": null,
                      "gatewayId": "8a90d6128ddbaf39018de2d9fe0d2660",
                      "paymentGatewayNumber": "PG-00000001",
                      "gatewayResponse": "Approved",
                      "gatewayResponseCode": "OK",
                      "gatewayState": "Submitted",
                      "markedForSubmissionOn": null,
                      "referenceId": "",
                      "secondRefundReferenceId": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "submittedOn": "2024-11-11 12:13:53",
                      "settledOn": null,
                      "cancelledOn": null,
                      "createdDate": "2024-11-11 12:13:52",
                      "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "updatedDate": "2024-11-11 12:14:03",
                      "updatedById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "refundTransactionTime": "2024-11-11 12:13:53",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "unappliedPaymentAccountingCode": null,
                        "unappliedPaymentAccountingCodeType": null,
                        "transferredToAccounting": false
                      },
                      "gatewayReconciliationStatus": null,
                      "gatewayReconciliationReason": null,
                      "payoutId": null,
                      "writeOff": false,
                      "writeOffResults": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRefundPaymentTypeAutoUnapply"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Refund a payment with auto-unapplying",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/payments/{paymentKey}/transfer": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nTransfers an unapplied payment.\n\nFor more information, see [Transfer Unapplied Payments](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/Transfer_Unapplied_Payments).\n",
        "operationId": "PUT_TransferPayment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.          \n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferPaymentType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028905f5a87c0ff015a88889fe500a8",
                      "accountNumber": "A00000001",
                      "amount": 44.1,
                      "appliedAmount": 0,
                      "authTransactionId": null,
                      "bankIdentificationNumber": null,
                      "cancelledOn": null,
                      "comment": "normal payment",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 11:30:37",
                      "creditBalanceAmount": 0,
                      "currency": "USD",
                      "effectiveDate": "2017-03-01",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "transferredToAccounting": "No",
                        "unappliedPaymentAccountingCode": null,
                        "unappliedPaymentAccountingCodeType": null
                      },
                      "gatewayId": null,
                      "gatewayOrderId": null,
                      "gatewayReconciliationReason": null,
                      "gatewayReconciliationStatus": null,
                      "gatewayResponse": null,
                      "gatewayResponseCode": null,
                      "gatewayState": "NotSubmitted",
                      "id": "4028905f5a87c0ff015a87eb6b75007f",
                      "markedForSubmissionOn": null,
                      "number": "P-00000001",
                      "paymentGatewayNumber": "PG-00000001",
                      "paymentMethodId": "402881e522cf4f9b0122cf5dc4020045",
                      "paymentMethodSnapshotId": null,
                      "payoutId": null,
                      "referenceId": null,
                      "refundAmount": 0,
                      "secondPaymentReferenceId": null,
                      "settledOn": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "status": "Processed",
                      "submittedOn": null,
                      "success": true,
                      "type": "External",
                      "unappliedAmount": 44.1,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 14:22:58"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETARPaymentType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Transfer a payment",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/payments/{paymentKey}/unapply": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nUnapplies an applied payment from invoices and debit memos.\n\nWhen you unapply a payment, the total number of invoice items and debit memo items that the payment will unapply from must be less than or equal to 15,000.\n\nIf the limit is hit, you can follow the instructions:\n- If you want to unapply one payment without specifying invoices or debit memos, you have to specify the invoices or debit memos in the request.\n- If you want to unapply one payment from multiple specified invoices or debit memos, decrease the number of invoices or debit memos in the request.\n- If you want to unapply one payment from a single invoice or debit memo with a large volume of items, you have to specify invoice items in the request. The maximum number of invoice items that you can specify in the request is 1,000.\n\nFor more information, see [Unapply Payments from Invoices and Debit Memos](https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/A_Unapplied_Payments/Management_of_Unapplied_Payments/Unapply_Payments_from_Invoices_and_Debit_Memos).\n",
        "operationId": "PUT_UnapplyPayment",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of an unapplied payment. For example, `8a8082e65b27f6c3015b89e4344c16b1`, or `P-00000001`.\n",
            "in": "path",
            "name": "paymentKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnapplyPaymentType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad0835290c4bb2f0190c9b5407c52a3",
                      "number": "P-00000018",
                      "status": "Processed",
                      "type": "External",
                      "accountId": "8ad097b490c4e5aa0190c9612d9c7034",
                      "accountNumber": "A00000122",
                      "amount": 14.99,
                      "appliedAmount": 0,
                      "unappliedAmount": 14.99,
                      "refundAmount": 0,
                      "creditBalanceAmount": 0,
                      "currency": "USD",
                      "effectiveDate": "2024-07-18",
                      "comment": null,
                      "paymentMethodId": "2c92c0f86cccaa59016cd5e0c41c0e89",
                      "paymentMethodSnapshotId": null,
                      "authTransactionId": null,
                      "bankIdentificationNumber": null,
                      "gatewayId": null,
                      "paymentGatewayNumber": null,
                      "gatewayOrderId": null,
                      "gatewayResponse": null,
                      "gatewayResponseCode": null,
                      "gatewayState": "NotSubmitted",
                      "markedForSubmissionOn": null,
                      "referenceId": null,
                      "secondPaymentReferenceId": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "submittedOn": null,
                      "settledOn": null,
                      "cancelledOn": null,
                      "createdDate": "2024-07-18 23:36:57",
                      "createdById": "b243314d594646d3b2651aeedd4be47e",
                      "updatedDate": "2024-07-19 00:03:20",
                      "updatedById": "b243314d594646d3b2651aeedd4be47e",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "unappliedPaymentAccountingCode": "Accounts Receivable",
                        "unappliedPaymentAccountingCodeType": "AccountsReceivable",
                        "transferredToAccounting": false
                      },
                      "gatewayReconciliationStatus": null,
                      "gatewayReconciliationReason": null,
                      "payoutId": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETARPaymentType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Unapply a payment",
        "tags": [
          "Payments"
        ]
      }
    },
    "/v1/object/payment-transaction-log/{id}": {
      "get": {
        "description": "Retrieves information about a specific payment transaction log.\n",
        "operationId": "Object_GETPaymentTransactionLog",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID of a payment transaction log.\n",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "Gateway": "TEST gateway name1476935063101",
                      "GatewayReasonCode": "approve",
                      "GatewayReasonCodeDescription": "This transaction has been approved by Test gateway.",
                      "GatewayState": "Submitted",
                      "GatewayTransactionType": "Sale",
                      "Id": "2c93808457d787030157e030b2703dcd",
                      "PaymentId": "2c93808457d787030157e030b2673dcc",
                      "TransactionDate": "2016-10-20T05:44:30.000+02:00",
                      "TransactionId": "874200.071357285"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyGetPaymentTransactionLog"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "message": "Authentication error"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyUnauthorizedResponse"
                }
              }
            },
            "description": "Unauthorized",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "WWW-Authenticate": {
                "description": "The value of this header is:\n\n```\nBasic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API\n```\n",
                "schema": {
                  "enum": [
                    "Basic realm=Zuora API, ZSession realm=Zuora API, Bearer realm=Zuora API"
                  ],
                  "type": "string"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "done": true,
                      "records": {},
                      "size": 0
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ProxyNoDataResponse"
                }
              }
            },
            "description": "",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "CRUD: Retrieve a payment transaction log",
        "tags": [
          "Payment Transaction Logs"
        ]
      }
    },
    "/v1/payment-runs": {
      "get": {
        "description": "Retrieves the information about all payment runs. You can define filterable fields to restrict the data returned in the response.\n\n### Filtering\n\nYou can use query parameters to restrict the data returned in the response. Each query parameter corresponds to one field in the response body.\n\nIf the value of a filterable field is string, you can set the corresponding query parameter to `null` when filtering. Then, you can get the response data with this field value being `null`. \n\nExamples:\n\n- /v1/payment-runs?status=Processed\n\n- /v1/payment-runs?targetDate=2017-10-10&status=Pending\n\n- /v1/payment-runs?status=Completed&sort=+updatedDate\n",
        "operationId": "GET_PaymentRuns",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "This parameter filters the response based on the `createdById` field.\n",
            "in": "query",
            "name": "createdById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdDate` field.\n",
            "in": "query",
            "name": "createdDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `status` field.\n",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "Pending",
                "Processing",
                "Completed",
                "Error",
                "Canceled"
              ],
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `targetDate` field.\n",
            "in": "query",
            "name": "targetDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedById` field.\n",
            "in": "query",
            "name": "updatedById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedDate` field.\n",
            "in": "query",
            "name": "updatedDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter restricts the order of the data returned in the response. You can use this parameter to supply a dimension you want to sort on.\n\nA sortable field uses the following form: \n\n*operator* *field_name*\n\nYou can use at most two sortable fields in one URL path. Use a comma to separate sortable fields. For example:  *operator* *field_name*, *operator* *field_name*  \n\n*operator* is used to mark the order of sequencing. The operator is optional. If you only specify the sortable field without any operator, the response data is sorted in descending order by this field.\n\n  - The `-` operator indicates an ascending order.\n  - The `+` operator indicates a descending order.\n\nBy default, the response data is displayed in descending order by payment run number.\n\n*field_name* indicates the name of a sortable field. The supported sortable fields of this operation are as below:\n\n  - targetDate\n  - status\n  - createdDate\n  - createdById\n  - updatedDate\n  - updatedById\n\nExamples:\n\n- /v1/payment-runs?sort=+createdDate\n\n- /v1/payment-runs?status=Processing&sort=-createdById,+targetDate\n",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "nextPage": "/payment-runs?page=2",
                      "paymentRuns": [
                        {
                          "applyCreditBalance": false,
                          "collectPayment": true,
                          "completedOn": "2017-12-28 13:00:00",
                          "consolidatedPayment": false,
                          "createdById": "2c92c0f956bc8fcb0156f8eee04b4d54",
                          "createdDate": "2017-12-27 13:00:00",
                          "executedOn": "2017-12-28 13:00:00",
                          "id": "2c92c0856078bbcb016096576ccb75ca",
                          "number": "PR-00002121",
                          "processPaymentWithClosedPM": false,
                          "runDate": null,
                          "status": "Completed",
                          "targetDate": "2017-12-28",
                          "updatedById": "2c92c0f956bc8fcb0156f8eee04b4d54",
                          "updatedDate": "2017-12-28 13:00:00"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentRunCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "List payment runs",
        "tags": [
          "Payment Runs"
        ]
      },
      "post": {
        "description": "Creates a payment run. You can create a payment run to be executed immediately after it is created, or a scheduled payment run to be executed in future.\n\nTo filter the payments to be collected for a payment run, you can use either of the following methods but not both:\n\n  - Use the `accountId`, `batch`, `billCycleDay`, `currency`, `paymentGatewayId`, and `billingRunId` fields to define the billing documents to be collected.\n  - Use the `data` field to specify the records of accounts and billing documents to be collected, in a more flexible manner. See [Create custom payment runs through Zuora REST API](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/K_Payment_Operations/CA_Payment_Runs/Create_custom_payment_runs_through_Zuora_REST_API) for more information.\n\nIf no filter criteria are specified in the request body, the payment run collects payments for all accounts.\n",
        "operationId": "POST_PaymentRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTPaymentRunRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8ad0835290e7dcf90190fd37f43e4bd8",
                      "number": "PR-00000006",
                      "targetDate": "2024-07-24",
                      "runDate": null,
                      "status": "Pending",
                      "accountId": "8ad09be48db5aba7018db604776d4854",
                      "executedOn": null,
                      "completedOn": null,
                      "autoApplyCreditMemo": false,
                      "autoApplyUnappliedPayment": false,
                      "consolidatedPayment": false,
                      "processPaymentWithClosedPM": false,
                      "collectPayment": true,
                      "useCustomPaymentMethods": true,
                      "createdDate": "2024-07-28 23:40:21",
                      "createdById": "b243314d594646d3b2651aeedd4be47e",
                      "updatedDate": "2024-07-28 23:40:21",
                      "updatedById": "b243314d594646d3b2651aeedd4be47e",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentRunType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Create a payment run",
        "tags": [
          "Payment Runs"
        ]
      }
    },
    "/v1/payment-runs/{paymentRunKey}": {
      "delete": {
        "description": "Deletes a payment run. Only payment runs with the Canceled or Error status can be deleted.\n",
        "operationId": "DELETE_PaymentRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The unique ID of a payment run or the payment run number. For example, 402890245f097f39015f0f074a2e0566.\n",
            "in": "path",
            "name": "paymentRunKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Delete a payment run",
        "tags": [
          "Payment Runs"
        ]
      },
      "get": {
        "description": "Retrives the information about a specific payment run.\n",
        "operationId": "GET_PaymentRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a payment run or the payment run number. For example, 402890245f097f39015f0f074a2e0566.\n",
            "in": "path",
            "name": "paymentRunKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "applyCreditBalance": false,
                      "collectPayment": true,
                      "completedOn": "2017-12-28 09:00:06",
                      "consolidatedPayment": false,
                      "createdById": "2c92c0f958fffd7d015914aeefc71a5d",
                      "createdDate": "2017-12-27 09:00:02",
                      "executedOn": "2017-12-28 09:00:06",
                      "id": "2c92c0856078bbcb0160957bbb8f0b32",
                      "number": "PR-00002120",
                      "processPaymentWithClosedPM": false,
                      "runDate": null,
                      "status": "Completed",
                      "success": true,
                      "targetDate": "2017-12-28",
                      "updatedById": "2c92c0f958fffd7d015914aeefc71a5d",
                      "updatedDate": "2017-12-28 09:00:06"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentRunType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Retrieve a payment run",
        "tags": [
          "Payment Runs"
        ]
      },
      "put": {
        "description": "Updates the information about an unexecuted payment run. Only pending payment runs can be updated.\n\nIf none of the **accountId**, **batch**, **billCycleDay**, **currency**, **paymentGatewayId**, and **billingRunId** fields is specified in the request body, the corresponding payment run collects payments for all accounts.\n",
        "operationId": "PUT_PaymentRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a payment run or the payment run number. For example, 402890245f097f39015f0f074a2e0566.\n",
            "in": "path",
            "name": "paymentRunKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTPaymentRunRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "402890245f097f39015f0e9fcdd60558",
                      "autoApplyCreditMemo": true,
                      "autoApplyUnappliedPayment": true,
                      "collectPayment": true,
                      "completedOn": null,
                      "consolidatedPayment": true,
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-09-22 12:37:22",
                      "executedOn": null,
                      "id": "402890245f097f39015f0f074a2e0566",
                      "number": "PR-00000391",
                      "processPaymentWithClosedPM": true,
                      "rundate": null,
                      "status": "Pending",
                      "success": true,
                      "targetDate": "2017-10-12",
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-09-22 12:37:22"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentRunType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Update a payment run",
        "tags": [
          "Payment Runs"
        ]
      }
    },
    "/v1/payment-runs/{paymentRunKey}/data": {
      "get": {
        "description": "Retrieves payment run data and the processing result with details, if the `data` field was specified in the Create payment run operation.\n   \n",
        "operationId": "GET_PaymentRunData",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The unique ID of a payment run or the payment run number. For example, 402890245f097f39015f0f074a2e0566.\n",
            "in": "path",
            "name": "paymentRunKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "data": [
                        {
                          "accountId": "402881ed738ddf2001738def8db50058",
                          "amount": 80,
                          "amountCollected": 80,
                          "amountToCollect": 80,
                          "comment": "Comment1",
                          "customField1__c": "cf_value1",
                          "customField2__c": "cf_value2",
                          "documentId": "402881ed738ddf2001738df388fd009e",
                          "documentType": "Invoice",
                          "paymentGatewayId": "402881ed738ddf2001738def8b630050",
                          "paymentMethodId": "402881ed738ddf2001738def8e60005b",
                          "result": "Processed",
                          "transactions": [
                            {
                              "amount": 40,
                              "appliedAmount": 40,
                              "id": "402881ed738ddf2001738dfafad6012c",
                              "status": "Processed",
                              "type": "Payment"
                            },
                            {
                              "appliedAmount": 10,
                              "id": "402881ed738ddf2001738df7572400e6",
                              "type": "CreditMemo"
                            },
                            {
                              "appliedAmount": 30,
                              "id": "402881ed738ddf2001738df715d800dd",
                              "type": "UnappliedPayment"
                            }
                          ]
                        },
                        {
                          "accountId": "402881ed738ddf2001738def8db50058",
                          "amount": 70,
                          "amountCollected": 70,
                          "amountToCollect": 70,
                          "comment": "Comment2",
                          "customField1__c": "cf_value3",
                          "customField2__c": "cf_value4",
                          "documentId": "402881ed738ddf2001738df5b90a00c0",
                          "documentType": "DebitMemo",
                          "paymentGatewayId": "402881ed738ddf2001738def8b630050",
                          "paymentMethodId": "402881ed738ddf2001738df97dbe00fe",
                          "result": "Processed",
                          "transactions": [
                            {
                              "amount": 70,
                              "appliedAmount": 70,
                              "id": "402881ed738ddf2001738dfafcbd013b",
                              "status": "Processed",
                              "type": "Payment"
                            }
                          ]
                        },
                        {
                          "accountId": "c49b85cd8ba742edb5ab4b3da90fc4c0",
                          "comment": "Comment3",
                          "customField1__c": "cf_value5",
                          "customField2__c": "cf_value6",
                          "documentId": "7dab18d036dc4c94bbec853afb12affb",
                          "documentType": "Invoice",
                          "errorCode": "Invalid_Request_Data",
                          "errorMessage": "Payment method is closed",
                          "paymentGatewayId": "768929c2f51947e79e73703bfc9bca7d",
                          "paymentMethodId": "1906df6f56f049c8b7457dc31f62d0ec",
                          "result": "Error"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentRunDataArrayResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Retrieve payment run data",
        "tags": [
          "Payment Runs"
        ]
      }
    },
    "/v1/payment-runs/{paymentRunKey}/summary": {
      "get": {
        "description": "Retrives the summary of a payment run.\n",
        "operationId": "GET_PaymentRunSummary",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The unique ID of a payment run or the payment run number. For example, 402890245f097f39015f0f074a2e0566.\n",
            "in": "path",
            "name": "paymentRunKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "numberOfCreditBalanceAdjustments": 0,
                      "numberOfCreditMemos": 1,
                      "numberOfDebitMemos": 1,
                      "numberOfErrors": 0,
                      "numberOfInvoices": 0,
                      "numberOfPayments": 1,
                      "numberOfReceivables": 1,
                      "numberOfUnappliedPayments": 1,
                      "numberOfUnprocessedDebitMemos": 0,
                      "numberOfUnprocessedInvoices": 0,
                      "numberOfUnprocessedReceivables": 0,
                      "success": true,
                      "totalValues": [
                        {
                          "totalValueOfCreditBalance": "0 USD",
                          "totalValueOfCreditMemos": "100 USD",
                          "totalValueOfDebitMemos": "256 USD",
                          "totalValueOfErrors": "0 USD",
                          "totalValueOfInvoices": "0 USD",
                          "totalValueOfPayments": "56 USD",
                          "totalValueOfReceivables": "256 USD",
                          "totalValueOfUnappliedPayments": "100 USD",
                          "totalValueOfUnprocessedDebitMemos": "0 USD",
                          "totalValueOfUnprocessedInvoices": "0 USD",
                          "totalValueOfUnprocessedReceivables": "0 USD"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentRunSummaryResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          }
        },
        "summary": "Retrieve a payment run summary",
        "tags": [
          "Payment Runs"
        ]
      }
    },
    "/v1/payment-schedule-items/retry-payment": {
      "post": {
        "description": "Retries failed payment schedule items. The payment method and payment gateway of the failed payment can be updated to new values before the retry.\n\nNote that you can retry a payment schedule item only when the payment schedule item is either in the `Error` or `Pending` status.\n\n**Note:**\n- To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.\n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.\n",
        "operationId": "POST_RetryPaymentScheduleItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTRetryPaymentScheduleItemRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "items": [
                        {
                          "amount": null,
                          "createdById": null,
                          "createdDate": null,
                          "currency": null,
                          "description": null,
                          "errorMessage": "Can not retry because payment Processed status is not allowed.",
                          "id": "402882e97f24bc36017f2986654f0253",
                          "paymentGatewayId": null,
                          "paymentId": null,
                          "paymentMethodId": null,
                          "paymentScheduleId": "string",
                          "paymentScheduleNumber": "string",
                          "runHour": null,
                          "scheduledDate": null,
                          "status": null,
                          "updatedById": null,
                          "updatedDate": null
                        },
                        {
                          "PSIPaymentDate__c": "2022-02-22",
                          "PSIPaymentPicklist__c": "1",
                          "PSIPaymentText__c": "Payment Text From PSI via API Payment Error",
                          "PSIPicklist__c": "1",
                          "PSIText__c": "PSI Text Value",
                          "amount": 2,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2022-02-23 18:19:07",
                          "currency": "USD",
                          "description": null,
                          "errorMessage": null,
                          "id": "402882e97f24bc36017f298665570254",
                          "paymentGatewayId": "402883827d097a28017d09b41f690261",
                          "paymentId": "402882e97f24bc36017f298efb360277",
                          "paymentMethodId": "402882e97f24bc36017f258c2ff20076",
                          "paymentScheduleId": "string",
                          "paymentScheduleNumber": "string",
                          "runHour": 0,
                          "scheduledDate": "2022-02-22",
                          "status": "Processed",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2022-02-23 18:28:30"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTRetryPaymentScheduleItemResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retry failed payment schedule items",
        "tags": [
          "Payment Schedules"
        ]
      }
    },
    "/v1/payment-schedule-items/{item-id}/cancel": {
      "put": {
        "description": "Cancels a payment schedule item by ID.\n\n**Note:**\n- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.\n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.\n",
        "operationId": "PUT_CancelPaymentScheduleItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "The unique ID of a payment schedule item.",
            "in": "path",
            "name": "item-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amount": 30,
                      "billingDocument": {
                        "id": "8a90a2fd819503b50181959525e5205d",
                        "number": "INV00000001",
                        "type": "Invoice"
                      },
                      "cancellationReason": "Skip Payment",
                      "createdById": "8a90e082802185b901802199e15902d1",
                      "createdDate": "2022-07-22 00:43:42",
                      "currency": "USD",
                      "description": "",
                      "errorMessage": null,
                      "id": "8a90857b822459cd018224dcb9ec13bf",
                      "number": 1,
                      "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                      "paymentId": null,
                      "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                      "paymentScheduleId": "8a90857b822459cd018224dcb9eb13be",
                      "paymentScheduleNumber": "PS-00000007",
                      "runHour": 23,
                      "scheduledDate": "2022-11-01",
                      "standalone": false,
                      "status": "Canceled",
                      "success": true,
                      "updatedById": "8a90e082802185b901802199e15902d1",
                      "updatedDate": "2022-07-29 02:54:54"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTPaymentScheduleItemResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a payment schedule item",
        "tags": [
          "Payment Schedules"
        ]
      }
    },
    "/v1/payment-schedule-items/{item-id}/skip": {
      "put": {
        "description": "Skips a payment schedule item by ID. The skipped payment schedule item will turn to the `canceled` status, and a new item will be scheduled on the next recurring date after the last existing scheduled date.\n\n**Note:**\n- Only payment schedule items in recurring payment schedules can be skipped, and the item must be in the `pending` status.\n- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.\n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.\n",
        "operationId": "PUT_SkipPaymentScheduleItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "The unique ID of a payment schedule item.   \n",
            "in": "path",
            "name": "item-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amount": 30,
                      "billingDocument": null,
                      "cancellationReason": "Skip Payment",
                      "cf1__c": null,
                      "cf2__c": null,
                      "createdById": "402892f9423062950142306f2f530002",
                      "createdDate": "2022-09-22 00:59:17",
                      "currency": "USD",
                      "description": "",
                      "errorMessage": null,
                      "id": "402881a683642cff018364354abf12b6",
                      "number": 7,
                      "paymentGatewayId": null,
                      "paymentMethodId": "402892f9423062950142306f326c0056",
                      "paymentScheduleId": "402881a68361af72018361d4be120047",
                      "paymentScheduleNumber": "PS-00000004",
                      "runHour": 3,
                      "scheduledDate": "2022-11-04",
                      "standalone": true,
                      "status": "Pending",
                      "success": true,
                      "updatedById": "402892f9423062950142306f2f530002",
                      "updatedDate": "2022-09-22 00:59:17"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTSkipPaymentScheduleItemResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Skip a payment schedule item",
        "tags": [
          "Payment Schedules"
        ]
      }
    },
    "/v1/payment-schedule-items/{psi-id}": {
      "get": {
        "description": "Retrieves a payment schedule item by ID.\n\n**Note:**\n- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.\n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.\n",
        "operationId": "GET_PaymentScheduleItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "The unique ID of a payment schedule item.\n",
            "in": "path",
            "name": "psi-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amount": 30,
                      "billingDocument": {
                        "id": "8a90a2fd819503b50181959525e5205d",
                        "number": "INV00000001",
                        "type": "Invoice"
                      },
                      "cancellationReason": null,
                      "cancelledById": null,
                      "cancelledOn": null,
                      "createdById": "8a90e082802185b901802199e15902d1",
                      "createdDate": "2022-07-22 00:43:42",
                      "currency": "USD",
                      "description": "",
                      "errorMessage": null,
                      "id": "8a90857b822459cd018224dcb9ec13bf",
                      "number": 1,
                      "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                      "paymentId": null,
                      "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                      "paymentScheduleId": "8a90857b822459cd018224dcb9eb13be",
                      "paymentScheduleNumber": "PS-00000007",
                      "runHour": 23,
                      "scheduledDate": "2022-07-31",
                      "standalone": false,
                      "status": "Pending",
                      "success": true,
                      "updatedById": "8a90e082802185b901802199e15902d1",
                      "updatedDate": "2022-07-22 00:43:42"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentScheduleItemResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a payment schedule item",
        "tags": [
          "Payment Schedules"
        ]
      },
      "put": {
        "description": "Updates a payment schedule item by ID.\n\n**Note:**\n- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manag](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features).\n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.\n- To link or unlink multiple payments with the item, specify the `linkPayments` and `unlinkPayments` field in the request body. \n- When the Multi-currency and Standalone Payments features are not enabled, you can create and update a payment schedule and payment schedule item in a currency other than the account currency.\n- The maximum number of payments that are allowed to be linked to a payment schedule item is `10`.\n- When unlinking and linking payments with the payment schedule item in one request, Zuora will first unlink the linked payments, and then link new payments to the item.\n",
        "operationId": "PUT_PaymentScheduleItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "The unique ID of a payment schedule item.\n",
            "in": "path",
            "name": "psi-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTPaymentScheduleItemRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8a90d61290c9ceb60190d8eac80e125a",
                      "number": 1,
                      "paymentScheduleId": "8a90d61290c9ceb60190d8eac80b1259",
                      "paymentScheduleNumber": "PS-00000001",
                      "scheduledDate": "2024-07-31",
                      "runHour": 0,
                      "paymentMethodId": "8a90b44890c9bb0d0190d960b9191eea",
                      "paymentGatewayId": null,
                      "paymentGatewayNumber": null,
                      "amount": 14.99,
                      "balance": 14.99,
                      "currency": "USD",
                      "status": "Pending",
                      "errorMessage": null,
                      "paymentId": null,
                      "billingDocument": {
                        "id": "8a90b44890c9bb0d0190d8c048a90da6",
                        "number": "INV00001823",
                        "type": "Invoice"
                      },
                      "description": null,
                      "cancellationReason": null,
                      "cancelledById": null,
                      "cancelledOn": null,
                      "createdDate": "2024-07-22 13:29:43",
                      "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "updatedDate": "2024-07-22 15:40:21",
                      "updatedById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PUTPaymentScheduleItemResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a payment schedule item",
        "tags": [
          "Payment Schedules"
        ]
      },
      "delete": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nDeletes a payment schedule item. You can delete a payment schedule item with the `Canceled` status.\n",
        "operationId": "deletePaymentScheduleItem",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a payment schedule item.\n",
            "in": "path",
            "name": "psi-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a payment schedule item",
        "tags": [
          "Payment Schedules"
        ]
      }
    },
    "/v1/payment-schedules": {
      "get": {
        "description": "Retrieves payment schedules of a customer account.\n\n**Note:**\n- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.\n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.\n",
        "operationId": "GET_PaymentSchedules",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "Number of the most recent processed payment schedules dispalyed in the response body.\n",
            "in": "query",
            "name": "lastProcessedItems",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Number of next pending payment schedule items displayed in the response body.\n",
            "in": "query",
            "name": "nextPendingItems",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "The ID of the customer account. If neither `accountId` nor `accountNumber` is specified, all payment schedules will be returned. \n",
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The number of the customer account. If neither `accountId` nor `accountNumber` is specified, all payment schedules will be returned. \n",
            "in": "query",
            "name": "accountNumber",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": [
                      {
                        "accountId": "8a90a2fd8074995801807816dbac52a4",
                        "accountNumber": "A00000002",
                        "billingDocument": null,
                        "billingDocuments": [
                          {
                            "id": "8a26e082802185b201976199e1991521",
                            "number": "INV-001",
                            "type": "Invoice"
                          },
                          {
                            "id": "8a11e082802185b901126e34713407d2",
                            "number": "INV-002",
                            "type": "Invoice"
                          }
                        ],
                        "createdById": "8a90e082802185b901802199e15902d1",
                        "createdDate": "2022-07-22 00:43:42",
                        "description": "",
                        "id": "8a90857b822459cd018224dcb9eb13be",
                        "isCustom": true,
                        "items": [
                          {
                            "amount": 30,
                            "billingDocument": {
                              "id": "8a90a2fd819503b50181959525e5205d",
                              "number": "INV00000001",
                              "type": "Invoice"
                            },
                            "createdById": "8a90e082802185b901802199e15902d1",
                            "createdDate": "2022-07-22 00:43:42",
                            "currency": "USD",
                            "description": "",
                            "errorMessage": null,
                            "id": "8a90857b822459cd018224dcb9ec13bf",
                            "number": 1,
                            "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                            "paymentId": null,
                            "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                            "paymentScheduleId": "8a90857b822459cd018224dcb9eb13be",
                            "paymentScheduleNumber": "PS-00000007",
                            "runHour": 23,
                            "scheduledDate": "2022-07-31",
                            "standalone": false,
                            "status": "Pending",
                            "updatedById": "8a90e082802185b901802199e15902d1",
                            "updatedDate": "2022-07-22 00:43:42"
                          },
                          {
                            "amount": 10,
                            "billingDocument": {
                              "id": "8a90a2fd819503b50181959525e5205d",
                              "number": "INV00000001",
                              "type": "Invoice"
                            },
                            "createdById": "8a90e082802185b901802199e15902d1",
                            "createdDate": "2022-07-22 00:45:35",
                            "currency": "USD",
                            "description": "",
                            "errorMessage": null,
                            "id": "8a90a2fd822459ec018224de77a0359d",
                            "number": 2,
                            "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                            "paymentId": null,
                            "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                            "paymentScheduleId": "8a90857b822459cd018224dcb9eb13be",
                            "paymentScheduleNumber": "PS-00000007",
                            "runHour": 20,
                            "scheduledDate": "2022-08-31",
                            "standalone": false,
                            "status": "Pending",
                            "updatedById": "8a90e082802185b901802199e15902d1",
                            "updatedDate": "2022-07-22 00:45:35"
                          }
                        ],
                        "nextPaymentDate": "2022-07-31",
                        "occurrences": 2,
                        "paymentScheduleNumber": "PS-00000007",
                        "period": null,
                        "recentPaymentDate": null,
                        "runHour": 0,
                        "standalone": false,
                        "startDate": "2022-07-31",
                        "status": "Active",
                        "totalAmount": 50,
                        "totalPaymentsErrored": 0,
                        "totalPaymentsProcessed": 0,
                        "updatedById": "8a90e082802185b901802199e15902d1",
                        "updatedDate": "2022-07-22 00:45:36"
                      },
                      {
                        "accountId": "8a90a2fd8074995801807816dbac52a4",
                        "accountNumber": "A00000002",
                        "billingDocument": null,
                        "createdById": "8a90e082802185b901802199e15902d1",
                        "createdDate": "2022-07-20 21:24:40",
                        "description": "test update ps Xiaokai",
                        "id": "8a90e0828219a57101821f00287a3abd",
                        "isCustom": false,
                        "items": [
                          {
                            "amount": 10,
                            "billingDocument": {
                              "id": "8a90a2fd819503b50181959525e5205d",
                              "number": "INV00000001",
                              "type": "Invoice"
                            },
                            "createdById": "8a90e082802185b901802199e15902d1",
                            "createdDate": "2022-07-20 21:24:40",
                            "currency": "USD",
                            "description": "test update ps",
                            "errorMessage": null,
                            "id": "8a90e0828219a57101821f00287a3abf",
                            "number": 1,
                            "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                            "paymentId": "8a90e86d821fd6d1018221eae795158b",
                            "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                            "paymentScheduleId": "8a90e0828219a57101821f00287a3abd",
                            "paymentScheduleNumber": "PS-00000006",
                            "runHour": 11,
                            "scheduledDate": "2022-07-21",
                            "standalone": false,
                            "status": "Processed",
                            "updatedById": "3",
                            "updatedDate": "2022-07-21 11:00:19"
                          },
                          {
                            "amount": 10,
                            "billingDocument": {
                              "id": "8a90a2fd819503b50181959525e5205d",
                              "number": "INV00000001",
                              "type": "Invoice"
                            },
                            "createdById": "8a90e082802185b901802199e15902d1",
                            "createdDate": "2022-07-20 21:24:40",
                            "currency": "USD",
                            "description": "test update ps",
                            "errorMessage": null,
                            "id": "8a90e0828219a57101821f00287b3ac0",
                            "number": 2,
                            "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                            "paymentId": null,
                            "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                            "paymentScheduleId": "8a90e0828219a57101821f00287a3abd",
                            "paymentScheduleNumber": "PS-00000006",
                            "runHour": 11,
                            "scheduledDate": "2022-08-04",
                            "standalone": false,
                            "status": "Pending",
                            "updatedById": "8a90e082802185b901802199e15902d1",
                            "updatedDate": "2022-07-20 21:26:26"
                          },
                          {
                            "amount": 10,
                            "billingDocument": {
                              "id": "8a90a2fd819503b50181959525e5205d",
                              "number": "INV00000001",
                              "type": "Invoice"
                            },
                            "createdById": "8a90e082802185b901802199e15902d1",
                            "createdDate": "2022-07-20 21:24:40",
                            "currency": "USD",
                            "description": "test update ps",
                            "errorMessage": null,
                            "id": "8a90e0828219a57101821f00287b3ac1",
                            "number": 3,
                            "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                            "paymentId": null,
                            "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                            "paymentScheduleId": "8a90e0828219a57101821f00287a3abd",
                            "paymentScheduleNumber": "PS-00000006",
                            "runHour": 11,
                            "scheduledDate": "2022-08-18",
                            "standalone": false,
                            "status": "Pending",
                            "updatedById": "8a90e082802185b901802199e15902d1",
                            "updatedDate": "2022-07-20 21:26:26"
                          },
                          {
                            "amount": 10,
                            "billingDocument": {
                              "id": "8a90a2fd819503b50181959525e5205d",
                              "number": "INV00000001",
                              "type": "Invoice"
                            },
                            "createdById": "8a90e082802185b901802199e15902d1",
                            "createdDate": "2022-07-20 21:26:26",
                            "currency": "USD",
                            "description": "test update ps",
                            "errorMessage": null,
                            "id": "8a90e0828219a57101821f01c5447f04",
                            "number": 4,
                            "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                            "paymentId": null,
                            "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                            "paymentScheduleId": "8a90e0828219a57101821f00287a3abd",
                            "paymentScheduleNumber": "PS-00000006",
                            "runHour": 11,
                            "scheduledDate": "2022-09-01",
                            "standalone": false,
                            "status": "Pending",
                            "updatedById": "8a90e082802185b901802199e15902d1",
                            "updatedDate": "2022-07-20 21:26:26"
                          }
                        ],
                        "nextPaymentDate": "2022-08-04",
                        "occurrences": 4,
                        "paymentScheduleNumber": "PS-00000006",
                        "period": "BiWeekly",
                        "recentPaymentDate": "2022-07-21",
                        "runHour": 11,
                        "standalone": false,
                        "startDate": "2022-07-21",
                        "status": "Active",
                        "totalAmount": 40,
                        "totalPaymentsErrored": 0,
                        "totalPaymentsProcessed": 1,
                        "updatedById": "3",
                        "updatedDate": "2022-07-21 11:00:21"
                      }
                    ]
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentSchedulesResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List payment schedules by customer account",
        "tags": [
          "Payment Schedules"
        ]
      },
      "post": {
        "description": "Creates a payment schedule. You can create either recurring payment schedules or custom payment schedules.\n\n**Note:**\n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.\n- You can choose to use payment schedules to process payments associated with billing documents or unapplied payments. If Standalone Payment is enabled, you can also use payment schedules to process standalone payments.\n- If multiple billing documents are associated to a payment schedule, when collecting the payment schedule item, the payment belongs to the payment schedule item will be applied to billing documents based on the due date of the billing document, in the ascending order.\n- When the Multi-currency and Standalone Payments features are not enabled, you can create and update a payment schedule and payment schedule item in a currency other than the account currency.\n- This operation is version controlled. If you set `Zuora-Version` to `329.0`, when creating custom payment schedules associated with billing documents, you need to specify the billing document for each payment schedule item; If `Zuora-Version` is set to `330.0` or a later available version, when creating custom payment schedules associated with billing documents, you only need to specify the billing documents at the payment schedule level. The default version number is `329.0`. However, we recommend that you specify the version to `330.0` or a later version.\n",
        "operationId": "POST_PaymentSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTPaymentScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8a90d61290c9ceb60190d8eac80b1259",
                      "paymentScheduleNumber": "PS-00000001",
                      "accountId": "8a90b4488e7d5c0f018e7db3892400b2",
                      "accountNumber": "A00000370",
                      "startDate": "2024-07-31",
                      "runHour": 0,
                      "period": null,
                      "occurrences": 1,
                      "status": "Active",
                      "totalAmount": 14.99,
                      "nextPaymentDate": "2024-07-31",
                      "recentPaymentDate": null,
                      "totalPaymentsProcessed": 0,
                      "totalPaymentsErrored": 0,
                      "description": null,
                      "isCustom": true,
                      "prepayment": false,
                      "billingDocument": {
                        "id": "8a90b44890c9bb0d0190d8c048a90da6",
                        "number": "INV00001823",
                        "type": "Invoice"
                      },
                      "billingDocuments": [
                        {
                          "id": "8a90b44890c9bb0d0190d8c048a90da6",
                          "number": "INV00001823",
                          "type": "Invoice"
                        }
                      ],
                      "createdDate": "2024-07-22 13:29:43",
                      "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "updatedDate": "2024-07-22 13:29:43",
                      "updatedById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "cancelledById": null,
                      "cancelledOn": null,
                      "cancelDate": null,
                      "items": [
                        {
                          "id": "8a90d61290c9ceb60190d8eac80e125a",
                          "number": 1,
                          "paymentScheduleId": "8a90d61290c9ceb60190d8eac80b1259",
                          "paymentScheduleNumber": "PS-00000001",
                          "scheduledDate": "2024-07-31",
                          "runHour": 0,
                          "paymentMethodId": null,
                          "paymentGatewayId": null,
                          "paymentGatewayNumber": null,
                          "amount": 14.99,
                          "balance": 14.99,
                          "currency": "USD",
                          "status": "Pending",
                          "errorMessage": null,
                          "paymentId": null,
                          "billingDocument": {
                            "id": "8a90b44890c9bb0d0190d8c048a90da6",
                            "number": "INV00001823",
                            "type": "Invoice"
                          },
                          "description": null,
                          "cancellationReason": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "createdDate": "2024-07-22 13:29:43",
                          "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                          "updatedDate": "2024-07-22 13:29:43",
                          "updatedById": "2c92c8f95e2d6ebb015e325df48e02da"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTPaymentScheduleResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a payment schedule",
        "tags": [
          "Payment Schedules"
        ]
      }
    },
    "/v1/payment-schedules/batch": {
      "post": {
        "description": "Creates multiple payment schedules at once. You can create both recurring payment schedules and custom payment schedules in one request.\nThe maximum number of payment schedules that can be created by a single request is 50.\nThe maximum number of payment schedule items that each payment schedule can contain is 1000, i.e., you must specify less than 1000 items for a custom payment schedule, and the `occurrences` field must be less than 1000 for a recurring payment schedule.\n\n**Note:**\n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.\n- If multiple billing documents are associated to a payment schedule, when collecting the payment schedule item, the payment belongs to the payment schedule item will be applied to billing documents based on the due date of the billing document, in the ascending order.\n\n- If Standalone Payment is enabled, you can choose to use payment schedules to process payments associated with billing documents, standalone payments, or unapplied payments. If Standalone Payment is not enabled, you can only use payment schedules to process unapplied payments or payments associated with billing documents.\n- This operation is version controlled. If you set `Zuora-Version` to `329.0`, when creating custom payment schedules associated with billing documents, you need to specify the billing document for each payment schedule item; If `Zuora-Version` is set to `330.0`, when creating custom payment schedules associated with billing documents, you only need to specify the billing documents at the payment schedule level. The default version number is `329.0`. However, we recommend that you specify the version to `330.0`. `329.0` will be deprecated soon.\n",
        "operationId": "POST_PaymentSchedules",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTPaymentSchedulesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "paymentSchedules": [
                        {
                          "id": "402880e741112b310149b7343ef81234",
                          "paymentScheduleNumber": "PS-00311401"
                        },
                        {
                          "id": "402880e741112b310149b7343ef81234",
                          "paymentScheduleNumber": "PS-00311402"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTPaymentSchedulesResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create multiple payment schedules at once",
        "tags": [
          "Payment Schedules"
        ]
      }
    },
    "/v1/payment-schedules/statistics/{yyyy-mm-dd}": {
      "get": {
        "description": "Retrieves the payment schedule statistic of a specific date.\n\n**Note:**\n- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.\n",
        "operationId": "GET_PaymentScheduleStatistic",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Specifies the date of the payment schedule statistic you want to view. \n",
            "in": "path",
            "name": "yyyy-mm-dd",
            "required": true,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "date": "2022-07-29",
                      "paymentRuns": [],
                      "paymentScheduleItems": {
                        "error": 0,
                        "pending": 0,
                        "processed": 0
                      },
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentScheduleStatisticResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve payment schedule statistic of a date",
        "tags": [
          "Payment Schedules"
        ]
      }
    },
    "/v1/payment-schedules/{paymentScheduleKey}": {
      "get": {
        "description": "Retrieves a payment schedule by payment schedule key.\n\n**Note:**\n- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.\n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.\n",
        "operationId": "GET_PaymentSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "Number of next pending payment schedule items displayed in the response body.\n",
            "in": "query",
            "name": "nextPendingItems",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Number of the most recent processed payment schedule items dispalyed in the response body.\n",
            "in": "query",
            "name": "lastProcessedItems",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.\n",
            "in": "path",
            "name": "paymentScheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "8a90a2fd8074995801807816dbac52a4",
                      "accountNumber": "A00000002",
                      "billingDocument": {
                        "id": "8a90a2fd819503b50181959525e5205d",
                        "number": "INV00000001",
                        "type": "Invoice"
                      },
                      "billingDocuments": [
                        {
                          "id": "8a26e082802185b201976199e1991521",
                          "number": "INV-001",
                          "type": "Invoice"
                        },
                        {
                          "id": "8a11e082802185b901126e34713407d2",
                          "number": "INV-002",
                          "type": "Invoice"
                        }
                      ],
                      "createdById": "8a90e082802185b901802199e15902d1",
                      "createdDate": "2022-07-22 00:43:42",
                      "description": "",
                      "id": "8a90857b822459cd018224dcb9eb13be",
                      "isCustom": true,
                      "items": [
                        {
                          "amount": 30,
                          "billingDocument": {
                            "id": "8a90a2fd819503b50181959525e5205d",
                            "number": "INV00000001",
                            "type": "Invoice"
                          },
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-22 00:43:42",
                          "currency": "USD",
                          "description": "",
                          "errorMessage": null,
                          "id": "8a90857b822459cd018224dcb9ec13bf",
                          "number": 1,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90857b822459cd018224dcb9eb13be",
                          "paymentScheduleNumber": "PS-00000007",
                          "runHour": 23,
                          "scheduledDate": "2022-07-31",
                          "standalone": false,
                          "status": "Pending",
                          "updatedById": "8a90e082802185b901802199e15902d1",
                          "updatedDate": "2022-07-22 00:43:42",
                          "cancelledById": null,
                          "cancelledOn": null
                        },
                        {
                          "amount": 10,
                          "billingDocument": {
                            "id": "8a90a2fd819503b50181959525e5205d",
                            "number": "INV00000001",
                            "type": "Invoice"
                          },
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-22 00:45:35",
                          "currency": "USD",
                          "description": "",
                          "errorMessage": null,
                          "id": "8a90a2fd822459ec018224de77a0359d",
                          "number": 2,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90857b822459cd018224dcb9eb13be",
                          "paymentScheduleNumber": "PS-00000007",
                          "runHour": 20,
                          "scheduledDate": "2022-08-31",
                          "standalone": false,
                          "status": "Pending",
                          "updatedById": "8a90e082802185b901802199e15902d1",
                          "updatedDate": "2022-07-22 00:45:35",
                          "cancelledById": null,
                          "cancelledOn": null
                        }
                      ],
                      "nextPaymentDate": "2022-07-31",
                      "occurrences": 2,
                      "paymentScheduleNumber": "PS-00000007",
                      "period": null,
                      "recentPaymentDate": null,
                      "runHour": 0,
                      "standalone": false,
                      "startDate": "2022-07-31",
                      "status": "Active",
                      "success": true,
                      "totalAmount": 40,
                      "totalPaymentsErrored": 0,
                      "totalPaymentsProcessed": 0,
                      "updatedById": "8a90e082802185b901802199e15902d1",
                      "updatedDate": "2022-07-22 00:45:36",
                      "cancellationReason": null,
                      "cancelledById": null,
                      "cancelledOn": null,
                      "cancelDate": "2022-07-28 00:00:00"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentScheduleResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a payment schedule",
        "tags": [
          "Payment Schedules"
        ]
      },
      "put": {
        "description": "Updates a payment schedule. For custom payment schedules, only the custom fields on the payment schedules can be udpated. Use the [Update a payment schedule item](https://developer.zuora.com/api-references/api/operation/PUT_PaymentScheduleItem/) operation to update payment schedule items of custom payment schedule.\n\nNote the following rules for the `periodStartDate`, `period`, and `occurrences`:\n\n- If `periodStartDate` is specified, all pending payment schedule items will be rescheduled using this new `periodStartDate`. If `period` is changed, we recommend passing in `periodStartDate`. Otherwise, the system would use the original start date if there is no processed or canceled items, or the last processed or canceled '`scheduleDate` + 1 `period`' as the new `periodStartDate`.\n- If only `occurrences` is updated, the new item will start with the last processed or canceled '`scheduleDate` + 1 `period`'.\n\n**Note:**\n- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.\n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.\n- When the Multi-currency and Standalone Payments features are not enabled, you can create and update a payment schedule and payment schedule item in a currency other than the account currency.\n",
        "operationId": "PUT_PaymentSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.\n",
            "in": "path",
            "name": "paymentScheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTPaymentScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "8a90a2fd8074995801807816dbac52a4",
                      "accountNumber": "A00000002",
                      "billingDocument": null,
                      "createdById": "8a90e082802185b901802199e15902d1",
                      "createdDate": "2022-07-10 01:46:33",
                      "description": "Details of this payment schedule",
                      "id": "8a90e08281e10bb00181e749f4db01b8",
                      "isCustom": false,
                      "items": [
                        {
                          "amount": 100,
                          "billingDocument": null,
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-10 01:46:33",
                          "currency": "USD",
                          "description": "test xiaokai",
                          "errorMessage": null,
                          "id": "8a90e08281e10bb00181e749f4dd01b9",
                          "number": 1,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90e08281e10bb00181e749f4db01b8",
                          "paymentScheduleNumber": "PS-00000002",
                          "runHour": 12,
                          "scheduledDate": "2022-07-10",
                          "standalone": true,
                          "status": "Canceled",
                          "updatedById": "8a90e082802185b901802199e15902d1",
                          "updatedDate": "2022-07-28 06:12:39"
                        },
                        {
                          "amount": 100,
                          "billingDocument": null,
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-10 01:46:33",
                          "currency": "USD",
                          "description": "test xiaokai",
                          "errorMessage": null,
                          "id": "8a90e08281e10bb00181e749f4e501ba",
                          "number": 2,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90e08281e10bb00181e749f4db01b8",
                          "paymentScheduleNumber": "PS-00000002",
                          "runHour": 12,
                          "scheduledDate": "2022-08-10",
                          "standalone": true,
                          "status": "Canceled",
                          "updatedById": "8a90e082802185b901802199e15902d1",
                          "updatedDate": "2022-07-28 06:12:39"
                        },
                        {
                          "amount": 10,
                          "billingDocument": null,
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-10 01:46:33",
                          "currency": "USD",
                          "description": "test xiaokai",
                          "errorMessage": null,
                          "id": "8a90e08281e10bb00181e749f4e601bb",
                          "number": 3,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90e08281e10bb00181e749f4db01b8",
                          "paymentScheduleNumber": "PS-00000002",
                          "runHour": 23,
                          "scheduledDate": "2022-11-01",
                          "standalone": true,
                          "status": "Pending",
                          "updatedById": "8a90e082802185b901802199e15902d1",
                          "updatedDate": "2022-07-28 06:12:39"
                        },
                        {
                          "amount": 10,
                          "billingDocument": null,
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-24 20:07:12",
                          "currency": "USD",
                          "description": "test xiaokai",
                          "errorMessage": null,
                          "id": "8a908de6822b2e1501823352ac745b53",
                          "number": 4,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90e08281e10bb00181e749f4db01b8",
                          "paymentScheduleNumber": "PS-00000002",
                          "runHour": 23,
                          "scheduledDate": "2022-12-01",
                          "standalone": true,
                          "status": "Pending",
                          "updatedById": "8a90e082802185b901802199e15902d1",
                          "updatedDate": "2022-07-28 06:12:39"
                        },
                        {
                          "amount": 10,
                          "billingDocument": null,
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-28 06:12:39",
                          "currency": "USD",
                          "description": "test xiaokai",
                          "errorMessage": null,
                          "id": "8a90e082824456ae018244f00e0317eb",
                          "number": 5,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90e08281e10bb00181e749f4db01b8",
                          "paymentScheduleNumber": "PS-00000002",
                          "runHour": 23,
                          "scheduledDate": "2023-01-01",
                          "standalone": true,
                          "status": "Pending",
                          "updatedById": "8a90e082802185b901802199e159021d",
                          "updatedDate": "2022-07-28 06:12:39"
                        }
                      ],
                      "nextPaymentDate": "2022-11-01",
                      "occurrences": 5,
                      "paymentScheduleNumber": "PS-00000002",
                      "period": "Monthly",
                      "recentPaymentDate": null,
                      "runHour": 23,
                      "standalone": true,
                      "startDate": "2022-07-10",
                      "status": "Active",
                      "success": true,
                      "totalAmount": 230,
                      "totalPaymentsErrored": 0,
                      "totalPaymentsProcessed": 0,
                      "updatedById": "8a90e082802185b901802199e15902d1",
                      "updatedDate": "2022-07-28 06:12:39"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentScheduleResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a payment schedule",
        "tags": [
          "Payment Schedules"
        ]
      },
      "delete": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nDeletes a payment schedule. You can delete a payment schedule with the `Canceled` status.\n",
        "operationId": "deletePaymentSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be` or `PS-00000007`.\n",
            "in": "path",
            "name": "paymentScheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a payment schedule",
        "tags": [
          "Payment Schedules"
        ]
      }
    },
    "/v1/payment-schedules/{paymentScheduleKey}/cancel": {
      "put": {
        "description": "Cancels a payment schedule.\n\n**Note:**\n- All pending payment schedule items will be canceled, effective from `cancelDate`. \n- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see  <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features\" target=\"_blank\">Manage Features</a> in the Knowledge Center.\n- This operation is only available if you have <a href=\"https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement\" target=\"_blank\">Invoice Settlement</a> enabled.\n- For more information on the payment schedule cancellation use case, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Payments/Payment_Schedules/Payment_schedules_use_cases\" target=\"_blank\">Payment schedules use cases</a> in the Knowledge Center.\n",
        "operationId": "PUT_CancelPaymentSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.\n",
            "in": "path",
            "name": "paymentScheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTCancelPaymentScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "402880e741112b310149b7343ef81234",
                      "accountNumber": "A-00000001",
                      "cf1__c": "v1",
                      "createdById": "402892f942306295014230a4ab4909bf",
                      "createdDate": "2021-11-01 19:40:00",
                      "description": null,
                      "errorCount": 0,
                      "id": "402880e749b72b310149b7343ef80005",
                      "items": [
                        {
                          "accountId": "402880e741112b310149b7343ef81234",
                          "amount": 10,
                          "cf1__c": "v1",
                          "createdById": "402892f942306295014230a4ab4909bf",
                          "createdDate": "2021-11-01 19:40:00",
                          "currency": "USD",
                          "description": null,
                          "errorMessage": null,
                          "id": "412880e749b72b310149b7343ef81346",
                          "number": 1,
                          "paymentGatewayId": "abc",
                          "paymentId": null,
                          "paymentMethodId": "123",
                          "paymentScheduleId": "string",
                          "paymentScheduleNumber": "string",
                          "runHour": 1,
                          "scheduledDate": "2021-11-01",
                          "status": "Canceled",
                          "updatedById": "402892f942306295014230a4ab4909bf",
                          "updatedDate": "2021-11-01 19:40:00"
                        },
                        {
                          "accountId": "402880e741112b310149b7343ef81234",
                          "amount": 10,
                          "cf1__c": "v1",
                          "createdById": "402892f942306295014230a4ab4909bf",
                          "createdDate": "2021-11-01 19:40:00",
                          "currency": "USD",
                          "description": null,
                          "errorMessage": null,
                          "id": "412880e749b72b310149b7343ef81347",
                          "number": 2,
                          "paymentGatewayId": "abc",
                          "paymentId": null,
                          "paymentMethodId": "123",
                          "paymentScheduleId": "string",
                          "paymentScheduleNumber": "string",
                          "runHour": 1,
                          "scheduledDate": "2021-12-01",
                          "status": "Canceled",
                          "updatedById": "402892f942306295014230a4ab4909bf",
                          "updatedDate": "2021-11-01 19:40:00"
                        }
                      ],
                      "nextProcessDate": "2021-11-01",
                      "occurrences": 2,
                      "paymentScheduleNumber": "PS-00000001",
                      "period": "Monthly",
                      "processedCount": 0,
                      "recentProcessedDate": null,
                      "runHour": 1,
                      "startDate": "2021-11-01",
                      "status": "Canceled",
                      "success": true,
                      "totalAmount": 20,
                      "updatedById": "402892f942306295014230a4ab4909bf",
                      "updatedDate": "2021-11-01 19:40:00"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentScheduleResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a payment schedule",
        "tags": [
          "Payment Schedules"
        ]
      }
    },
    "/v1/payment-schedules/{paymentScheduleKey}/items": {
      "post": {
        "description": "Adds payment schedule items to a custom payment schedule. You cannot use this operation to add payment schedule items to recurring payment schedules.\n\n**Note:**\n- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.\n- This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled.\n- When the Multi-currency and Standalone Payments features are not enabled, you can create and update a payment schedule and payment schedule item in a currency other than the account currency.\n",
        "operationId": "POST_AddItemsToCustomPaymentSchedule",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.\n",
            "in": "path",
            "name": "paymentScheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTAddItemsToPaymentScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8a90aac892f70c8f0192fb48a8e80281",
                      "paymentScheduleNumber": "PS-00000003",
                      "accountId": "8a90b4488e7d5c0f018e7db3892400b2",
                      "accountNumber": "A00000370",
                      "startDate": "2024-11-22",
                      "runHour": 0,
                      "period": null,
                      "occurrences": 2,
                      "status": "Active",
                      "totalAmount": 150,
                      "nextPaymentDate": "2024-11-22",
                      "recentPaymentDate": null,
                      "totalPaymentsProcessed": 0,
                      "totalPaymentsErrored": 0,
                      "description": "",
                      "isCustom": true,
                      "prepayment": false,
                      "billingDocument": null,
                      "billingDocuments": [],
                      "createdDate": "2024-11-05 15:44:56",
                      "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "updatedDate": "2024-11-05 15:46:04",
                      "updatedById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "cancelledById": null,
                      "cancelledOn": null,
                      "cancelDate": null,
                      "items": [
                        {
                          "id": "8a90aac892f70c8f0192fb48a9150282",
                          "number": "1",
                          "paymentScheduleId": "8a90aac892f70c8f0192fb48a8e80281",
                          "paymentScheduleNumber": "PS-00000003",
                          "scheduledDate": "2024-11-22",
                          "runHour": 0,
                          "paymentMethodId": null,
                          "paymentGatewayId": null,
                          "paymentGatewayNumber": null,
                          "amount": 100,
                          "balance": 100,
                          "currency": "USD",
                          "status": "Pending",
                          "errorMessage": null,
                          "paymentId": null,
                          "psiPayments": [],
                          "prepayment": false,
                          "billingDocument": null,
                          "description": "",
                          "cancellationReason": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "createdDate": "2024-11-05 15:44:56",
                          "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                          "updatedDate": "2024-11-05 15:44:56",
                          "updatedById": "2c92c8f95e2d6ebb015e325df48e02da"
                        },
                        {
                          "id": "8a9084f992f70ca40192fb49b64d5704",
                          "number": "2",
                          "paymentScheduleId": "8a90aac892f70c8f0192fb48a8e80281",
                          "paymentScheduleNumber": "PS-00000003",
                          "scheduledDate": "2024-11-22",
                          "runHour": 0,
                          "paymentMethodId": null,
                          "paymentGatewayId": null,
                          "paymentGatewayNumber": null,
                          "amount": 50,
                          "balance": 50,
                          "currency": "USD",
                          "status": "Pending",
                          "errorMessage": null,
                          "paymentId": null,
                          "psiPayments": [],
                          "prepayment": false,
                          "billingDocument": null,
                          "description": null,
                          "cancellationReason": null,
                          "cancelledById": null,
                          "cancelledOn": null,
                          "createdDate": "2024-11-05 15:46:04",
                          "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                          "updatedDate": "2024-11-05 15:46:04",
                          "updatedById": "2c92c8f95e2d6ebb015e325df48e02da"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentScheduleResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Add payment schedule items to a custom payment schedule",
        "tags": [
          "Payment Schedules"
        ]
      }
    },
    "/v1/payment-schedules/{paymentScheduleKey}/preview": {
      "put": {
        "description": "Preview the result of a payment schedule update. This operation only provides a preview. No changes will be made to the database. For custom payment schedules, only the custom fields on the payment schedules can be udpated. Use the [Update a payment schedule item](https://developer.zuora.com/api-references/api/tag/PUT_PaymentScheduleItem) operation to update payment schedule items of custom payment schedule.\n\nNote the following rules for the `periodStartDate`, `period`, and `occurrences`:\n\n- If `periodStartDate` is specified, all pending payment schedule items will be rescheduled using this new `periodStartDate`. If `period` is changed, we recommend passing in `periodStartDate`. Otherwise, the system would use the original start date if there is no processed or canceled items, or the last processed or canceled '`scheduleDate` + 1 `period`' as the new `periodStartDate`.\n- If only `occurrences` is updated, the new item will start with the last processed or canceled '`scheduleDate` + 1 `period`'.\n\n**Note:**\n- The Payment Schedules feature is in the **Early Adopter** phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. To manage and access this feature through the self-service interface, see [Manage Features](https://knowledgecenter.zuora.com/Zuora_Payments/Payments_Settings/Manage_Features) in the Knowledge Center.\n",
        "operationId": "PUT_PaymentScheduleUpdatePreview",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          },
          {
            "description": "The unique ID or number of a payment schedule. For example, `8a90857b822459cd018224dcb9eb13be`, or `PS-00000007`.\n",
            "in": "path",
            "name": "paymentScheduleKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTPreviewPaymentScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "8a90a2fd8074995801807816dbac52a4",
                      "accountNumber": "A00000002",
                      "billingDocument": null,
                      "createdById": "8a90e082802185b901802199e15902d1",
                      "createdDate": "2022-07-10 01:46:33",
                      "description": "test xiaokai",
                      "id": "8a90e08281e10bb00181e749f4db01b8",
                      "isCustom": false,
                      "items": [
                        {
                          "amount": 100,
                          "billingDocument": null,
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-10 01:46:33",
                          "currency": "USD",
                          "description": "test xiaokai",
                          "errorMessage": null,
                          "id": "8a90e08281e10bb00181e749f4dd01b9",
                          "number": 1,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90e08281e10bb00181e749f4db01b8",
                          "paymentScheduleNumber": "PS-00000002",
                          "runHour": 12,
                          "scheduledDate": "2022-07-10",
                          "standalone": true,
                          "status": "Canceled",
                          "updatedById": "8a90e082802185b901802199e15902d1",
                          "updatedDate": "2022-07-28 06:12:39"
                        },
                        {
                          "amount": 100,
                          "billingDocument": null,
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-10 01:46:33",
                          "currency": "USD",
                          "description": "test xiaokai",
                          "errorMessage": null,
                          "id": "8a90e08281e10bb00181e749f4e501ba",
                          "number": 2,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90e08281e10bb00181e749f4db01b8",
                          "paymentScheduleNumber": "PS-00000002",
                          "runHour": 12,
                          "scheduledDate": "2022-08-10",
                          "standalone": true,
                          "status": "Canceled",
                          "updatedById": "8a90e082802185b901802199e15902d1",
                          "updatedDate": "2022-07-28 06:12:39"
                        },
                        {
                          "amount": 10,
                          "billingDocument": null,
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-10 01:46:33",
                          "currency": "USD",
                          "description": "test xiaokai",
                          "errorMessage": null,
                          "id": "8a90e08281e10bb00181e749f4e601bb",
                          "number": 3,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90e08281e10bb00181e749f4db01b8",
                          "paymentScheduleNumber": "PS-00000002",
                          "runHour": 23,
                          "scheduledDate": "2022-11-01",
                          "standalone": true,
                          "status": "Pending",
                          "updatedById": "8a90e082802185b901802199e15902d1",
                          "updatedDate": "2022-07-28 06:12:39"
                        },
                        {
                          "amount": 10,
                          "billingDocument": null,
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-24 20:07:12",
                          "currency": "USD",
                          "description": "test xiaokai",
                          "errorMessage": null,
                          "id": "8a908de6822b2e1501823352ac745b53",
                          "number": 4,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90e08281e10bb00181e749f4db01b8",
                          "paymentScheduleNumber": "PS-00000002",
                          "runHour": 23,
                          "scheduledDate": "2022-12-01",
                          "standalone": true,
                          "status": "Pending",
                          "updatedById": "8a90e082802185b901802199e15902d1",
                          "updatedDate": "2022-07-28 06:12:39"
                        },
                        {
                          "amount": 10,
                          "billingDocument": null,
                          "createdById": "8a90e082802185b901802199e15902d1",
                          "createdDate": "2022-07-28 06:12:39",
                          "currency": "USD",
                          "description": "test xiaokai",
                          "errorMessage": null,
                          "id": "8a90e082824456ae018244f00e0317eb",
                          "number": 5,
                          "paymentGatewayId": "8a90a2fd807499580180781775c452a8",
                          "paymentId": null,
                          "paymentMethodId": "8a90a2fd8074995801807817ebed52aa",
                          "paymentScheduleId": "8a90e08281e10bb00181e749f4db01b8",
                          "paymentScheduleNumber": "PS-00000002",
                          "runHour": 23,
                          "scheduledDate": "2023-01-01",
                          "standalone": true,
                          "status": "Pending",
                          "updatedById": "8a90e082802185b901802199e15902d1",
                          "updatedDate": "2022-07-28 06:12:39"
                        }
                      ],
                      "nextPaymentDate": "2022-11-01",
                      "occurrences": 5,
                      "paymentScheduleNumber": "PS-00000002",
                      "period": "Monthly",
                      "recentPaymentDate": null,
                      "runHour": 23,
                      "standalone": true,
                      "startDate": "2022-07-10",
                      "status": "Active",
                      "success": true,
                      "totalPaymentsErrored": 0,
                      "totalPaymentsProcessed": 0,
                      "updatedById": "8a90e082802185b901802199e15902d1",
                      "updatedDate": "2022-07-28 06:12:39"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPaymentScheduleResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Preview the result of payment schedule updates",
        "tags": [
          "Payment Schedules"
        ]
      }
    },
    "/v1/refunds": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about all refunds. Two types of refunds are available, electronic refunds and external refunds.\n\n### Filtering\n\nYou can use query parameters to restrict the data returned in the response. Each query parameter corresponds to one field in the response body.\n\nIf the value of a filterable field is string, you can set the corresponding query parameter to `null` when filtering. Then, you can get the response data with this field value being `null`.\n\nExamples:\n\n- /v1/refunds?status=Processed\n\n- /v1/refunds?amount=4&status=Processed\n\n- /v1/refunds?status=Processed&type=External&sort=+number\n",
        "operationId": "GET_Refunds",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "This parameter filters the response based on the `accountId` field.\n",
            "in": "query",
            "name": "accountId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `amount` field.\n",
            "in": "query",
            "name": "amount",
            "required": false,
            "schema": {
              "format": "double",
              "type": "number"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdById` field.\n",
            "in": "query",
            "name": "createdById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `createdDate` field.\n",
            "in": "query",
            "name": "createdDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `methodType` field.\n",
            "in": "query",
            "name": "methodType",
            "required": false,
            "schema": {
              "enum": [
                "ACH",
                "Cash",
                "Check",
                "CreditCard",
                "PayPal",
                "WireTransfer",
                "DebitCard",
                "CreditCardReferenceTransaction",
                "BankTransfer",
                "Other"
              ],
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `number` field.\n",
            "in": "query",
            "name": "number",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `paymentId` field.\n",
            "in": "query",
            "name": "paymentId",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `refundDate` field.\n",
            "in": "query",
            "name": "refundDate",
            "required": false,
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `status` field.\n",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "enum": [
                "Processed",
                "Canceled",
                "Error",
                "Processing"
              ],
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `type` field.\n",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "enum": [
                "External",
                "Electronic"
              ],
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedById` field.\n",
            "in": "query",
            "name": "updatedById",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "This parameter filters the response based on the `updatedDate` field.\n",
            "in": "query",
            "name": "updatedDate",
            "required": false,
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "This parameter restricts the order of the data returned in the response. You can use this parameter to supply a dimension you want to sort on.\n\nA sortable field uses the following form: \n\n*operator* *field_name*\n\nYou can use at most two sortable fields in one URL path. Use a comma to separate sortable fields. For example:  *operator* *field_name*, *operator* *field_name*  \n\n*operator* is used to mark the order of sequencing. The operator is optional. If you only specify the sortable field without any operator, the response data is sorted in descending order by this field.\n\n  - The `-` operator indicates an ascending order.\n  - The `+` operator indicates a descending order.\n\nBy default, the response data is displayed in descending order by refund number.\n\n*field_name* indicates the name of a sortable field. The supported sortable fields of this operation are as below:\n\n  - number\n  - accountId\n  - amount\n  - refundDate\n  - paymentId\n  - createdDate\n  - createdById\n  - updatedDate\n  - updatedById\n\n  \nExamples:\n\n- /v1/refunds?sort=+number\n\n- /v1/refunds?status=Processed&sort=-number,+amount\n",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "refunds": [
                        {
                          "accountId": "4028905f5a87c0ff015a87d25ae90025",
                          "amount": 4,
                          "cancelledOn": null,
                          "comment": "update comment",
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 14:46:03",
                          "creditMemoId": null,
                          "financeInformation": {
                            "bankAccountAccountingCode": null,
                            "bankAccountAccountingCodeType": null,
                            "transferredToAccounting": "No",
                            "unappliedPaymentAccountingCode": null,
                            "unappliedPaymentAccountingCodeType": null
                          },
                          "gatewayId": null,
                          "gatewayReconciliationReason": null,
                          "gatewayReconciliationStatus": null,
                          "gatewayResponse": null,
                          "gatewayResponseCode": null,
                          "gatewayState": "NotSubmitted",
                          "id": "4028905f5a87c0ff015a889e590e00c9",
                          "markedForSubmissionOn": null,
                          "methodType": "CreditCard",
                          "number": "R-00000001",
                          "paymentId": "4028905f5a87c0ff015a889ddfb800c0",
                          "paymentMethodId": null,
                          "paymentMethodSnapshotId": null,
                          "payoutId": null,
                          "reasonCode": "Standard Refund",
                          "referenceId": null,
                          "refundDate": "2017-03-01",
                          "refundTransactionTime": null,
                          "secondRefundReferenceId": null,
                          "settledOn": null,
                          "softDescriptor": null,
                          "softDescriptorPhone": null,
                          "status": "Processed",
                          "submittedOn": null,
                          "type": "External",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 16:56:41"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRefundCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List refunds",
        "tags": [
          "Refunds"
        ]
      }
    },
    "/v1/refunds/{refundKey}": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nUpdates the basic and finance information about a refund.\n",
        "operationId": "PUT_UpdateRefund",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID or number of a refund. For example, `4028905f5a87c0ff015a889e590e00c9` or `R-00000001`.\n",
            "in": "path",
            "name": "refundKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTRefundType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8a90a04d90de54810190debe8e3b5a2c",
                      "number": "R-00000287",
                      "status": "Processed",
                      "type": "Electronic",
                      "methodType": "CreditCard",
                      "accountId": "8a90b4488e7d5c0f018e7db3892400b2",
                      "amount": 10,
                      "refundDate": "2024-07-23",
                      "comment": null,
                      "paymentMethodId": "8a90e5e490c9ceb80190d8e9df930bf0",
                      "paymentMethodSnapshotId": "8a90a04d90de54810190debe8e0c5a29",
                      "paymentId": "8a90e5e490c9ceb80190d91837840c1d",
                      "paymentNumber": "P-00000387",
                      "creditMemoId": null,
                      "reasonCode": "Other",
                      "gatewayId": "8a90d6128ddbaf39018de2d9fe0d2660",
                      "paymentGatewayNumber": "PG-00000001",
                      "gatewayResponse": "Approved",
                      "gatewayResponseCode": "OK",
                      "gatewayState": "Submitted",
                      "markedForSubmissionOn": null,
                      "referenceId": null,
                      "secondRefundReferenceId": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "submittedOn": "2024-07-23 16:39:09",
                      "settledOn": null,
                      "cancelledOn": null,
                      "createdDate": "2024-07-23 16:39:08",
                      "createdById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "updatedDate": "2024-07-23 16:49:00",
                      "updatedById": "2c92c8f95e2d6ebb015e325df48e02da",
                      "refundTransactionTime": "2024-07-23 16:39:09",
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "unappliedPaymentAccountingCode": null,
                        "unappliedPaymentAccountingCodeType": null,
                        "transferredToAccounting": false
                      },
                      "gatewayReconciliationStatus": null,
                      "gatewayReconciliationReason": null,
                      "payoutId": null,
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRefundType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a refund",
        "tags": [
          "Refunds"
        ]
      },
      "delete": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nDeletes a refund. You can delete a refund with the Canceled status. Note that refunds applied to credit balance cannot be deleted.\n",
        "operationId": "DELETE_Refund",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a refund or the refund number. For example, 4028905f5a87c0ff015a889e590e00c9.\n",
            "in": "path",
            "name": "refundKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a refund",
        "tags": [
          "Refunds"
        ]
      },
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about a specific refund.\n",
        "operationId": "GET_Refund",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a refund or the refund number. For example, 4028905f5a87c0ff015a889e590e00c9.\n",
            "in": "path",
            "name": "refundKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028905f5a87c0ff015a87d25ae90025",
                      "amount": 4,
                      "cancelledOn": null,
                      "comment": "Create a refund for unapplied payment.",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 14:46:03",
                      "creditMemoId": null,
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "transferredToAccounting": "No",
                        "unappliedPaymentAccountingCode": null,
                        "unappliedPaymentAccountingCodeType": null
                      },
                      "gatewayId": null,
                      "gatewayReconciliationReason": null,
                      "gatewayReconciliationStatus": null,
                      "gatewayResponse": null,
                      "gatewayResponseCode": null,
                      "gatewayState": "NotSubmitted",
                      "id": "4028905f5a87c0ff015a889e590e00c9",
                      "markedForSubmissionOn": null,
                      "methodType": "CreditCard",
                      "number": "R-00000001",
                      "paymentId": "4028905f5a87c0ff015a889ddfb800c0",
                      "paymentMethodId": null,
                      "paymentMethodSnapshotId": null,
                      "payoutId": null,
                      "reasonCode": "Standard Refund",
                      "referenceId": null,
                      "refundDate": "2017-03-01",
                      "refundTransactionTime": null,
                      "secondRefundReferenceId": null,
                      "settledOn": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "status": "Processed",
                      "submittedOn": null,
                      "success": true,
                      "type": "External",
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 14:46:03"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRefundType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a refund",
        "tags": [
          "Refunds"
        ]
      }
    },
    "/v1/refunds/{refundKey}/cancel": {
      "put": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nCancels a refund.\n\nIf you have the Invoice Settlement feature enabled, refunds applied to credit balance cannot be cancelled.\n",
        "operationId": "PUT_CancelRefund",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a refund or the refund number. For example, 4028905f5a87c0ff015a889e590e00c9.      \n",
            "in": "path",
            "name": "refundKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountId": "4028905f5a87c0ff015a87d25ae90025",
                      "amount": 4,
                      "cancelledOn": "2017-03-01 17:03:07",
                      "comment": "update comment",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 14:46:03",
                      "creditMemoId": null,
                      "financeInformation": {
                        "bankAccountAccountingCode": null,
                        "bankAccountAccountingCodeType": null,
                        "transferredToAccounting": "No",
                        "unappliedPaymentAccountingCode": null,
                        "unappliedPaymentAccountingCodeType": null
                      },
                      "gatewayId": null,
                      "gatewayReconciliationReason": null,
                      "gatewayReconciliationStatus": null,
                      "gatewayResponse": null,
                      "gatewayResponseCode": null,
                      "gatewayState": "NotSubmitted",
                      "id": "4028905f5a87c0ff015a889e590e00c9",
                      "markedForSubmissionOn": null,
                      "methodType": "CreditCard",
                      "number": "R-00000001",
                      "paymentId": "4028905f5a87c0ff015a889ddfb800c0",
                      "paymentMethodId": null,
                      "paymentMethodSnapshotId": null,
                      "payoutId": null,
                      "reasonCode": "Standard Refund",
                      "referenceId": null,
                      "refundDate": "2017-03-01",
                      "refundTransactionTime": null,
                      "secondRefundReferenceId": null,
                      "settledOn": null,
                      "softDescriptor": null,
                      "softDescriptorPhone": null,
                      "status": "Canceled",
                      "submittedOn": null,
                      "success": true,
                      "type": "External",
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 17:03:07"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRefundType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a refund",
        "tags": [
          "Refunds"
        ]
      }
    },
    "/v1/refunds/{refundKey}/parts": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about all parts of a refund.\n",
        "operationId": "GET_RefundParts",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.\n",
            "in": "path",
            "name": "refundKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "parts": [
                        {
                          "amount": 4,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 14:46:03",
                          "creditMemoId": null,
                          "id": "4028905f5a87c0ff015a889e592b00cf",
                          "paymentId": "4028905f5a87c0ff015a889ddfb800c0",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 14:46:03"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRefundPartCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all parts of a refund",
        "tags": [
          "Refunds"
        ]
      }
    },
    "/v1/refunds/{refundKey}/parts/{refundpartid}": {
      "get": {
        "description": "**Note:** This operation is only available if you have [Invoice Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information. \n\nRetrieves the information about a specific refund part.\n",
        "operationId": "GET_RefundPart",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a specific refund part. You can get the refund part ID from the response of [List all parts of a refund](https://developer.zuora.com/api-references/api/operation/GET_RefundParts).\n",
            "in": "path",
            "name": "refundpartid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.\n",
            "in": "path",
            "name": "refundKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amount": 4,
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 14:46:03",
                      "creditMemoId": null,
                      "id": "4028905f5a87c0ff015a889e592b00cf",
                      "paymentId": "4028905f5a87c0ff015a889ddfb800c0",
                      "success": true,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 14:46:03"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/RefundPartResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a refund part",
        "tags": [
          "Refunds"
        ]
      }
    },
    "/v1/refunds/{refundKey}/parts/{refundpartid}/item-parts": {
      "get": {
        "description": "**Note:** This operation is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos).  If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.\n\nRetrieves the information about all items of a refund part. A refund part item is a single line item in a refund part. A refund part can consist of several different types of items.\n",
        "operationId": "GET_RefundItemParts",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize"
          },
          {
            "description": "The unique ID of a specific refund part. You can get the refund part ID from the response of [List all parts of a refund](https://developer.zuora.com/api-references/api/operation/GET_RefundParts).\n",
            "in": "path",
            "name": "refundpartid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.\n",
            "in": "path",
            "name": "refundKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "itemParts": [
                        {
                          "amount": 4,
                          "createdById": "402881e522cf4f9b0122cf5d82860002",
                          "createdDate": "2017-03-01 14:46:03",
                          "creditMemoItemId": null,
                          "creditTaxItemId": null,
                          "id": "4028905f5a87c0ff015a889e592a00ce",
                          "updatedById": "402881e522cf4f9b0122cf5d82860002",
                          "updatedDate": "2017-03-01 14:46:03"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRefundItemPartCollectionType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all refund part items",
        "tags": [
          "Refunds"
        ]
      }
    },
    "/v1/refunds/{refundKey}/parts/{refundpartid}/item-parts/{itempartid}": {
      "get": {
        "description": "**Note:** This operation is only available if you have the [Invoice Item Settlement](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/C_Invoice_Item_Settlement) feature enabled. Invoice Item Settlement must be used together with other Invoice Settlement features (Unapplied Payments, and Credit and Debit memos).  If you wish to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://knowledgecenter.zuora.com/Billing/Billing_and_Payments/Invoice_Settlement/Invoice_Settlement_Migration_Checklist_and_Guide) for more information.  \n\nRetrieves the information about a specific refund part item. A refund part item is a single line item in a refund part. A refund part can consist of several different types of items.\n",
        "operationId": "GET_RefundItemPart",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The unique ID of a specific refund part item. You can get the refund part item ID from the response of [Get refund part items](https://developer.zuora.com/api-references/api/operation/GET_RefundItemParts).\n",
            "in": "path",
            "name": "itempartid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The unique ID of a specific refund part. You can get the refund part ID from the response of [List all parts of a refund](https://developer.zuora.com/api-references/api/operation/GET_RefundParts).\n",
            "in": "path",
            "name": "refundpartid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The number or unique ID of a refund. For example, 4028905f5a87c0ff015a889e590e00c9.\n",
            "in": "path",
            "name": "refundKey",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "amount": 4,
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2017-03-01 14:46:03",
                      "creditMemoItemId": null,
                      "creditTaxItemId": null,
                      "id": "4028905f5a87c0ff015a889e592a00ce",
                      "success": true,
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2017-03-01 14:46:03"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETRefundItemPartType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a refund part item",
        "tags": [
          "Refunds"
        ]
      }
    },
    "/v1/payment-profile": {
      "put": {
        "operationId": "UpsertPaymentProfiles",
        "summary": "Create or update payment profiles in bulk",
        "description": "Bulk creates payment profiles or updates payment profiles if they already exist. \n\nYou can create or update a maximum of 50 payment profiles in a single call.\n",
        "tags": [
          "Payment Profiles"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bulkPaymentOptionItems": {
                    "type": "array",
                    "description": "An array of payment profiles you want to create or update.\n",
                    "items": {
                      "properties": {
                        "subscriptionId": {
                          "type": "string",
                          "description": "The ID of the subscription associated with the payment profile fields.\n",
                          "format": "uuid"
                        },
                        "paymentMethodId": {
                          "type": "string",
                          "description": "The ID of the payment method that processes the payment.\n",
                          "format": "uuid"
                        },
                        "paymentGatewayId": {
                          "type": "string",
                          "description": "The ID of the gateway instance that processes the payment.\n",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "bulkPaymentOptionItems": [
                    {
                      "subscriptionId": "8ad080f08ed1c780018ed6acc5eb65fd",
                      "paymentGatewayId": "8b48f15831445266784be9fb20be9b40",
                      "paymentMethodId": "8ad09be48e5bcc3f018e5f0c0791674d"
                    },
                    {
                      "subscriptionId": "2c92c0f86a8dd422016a9e7a70116b0d",
                      "paymentGatewayId": "8ad086dc88762fc7018876e2a83406ef",
                      "paymentMethodId": "8ad0950c8292b8560182a75940b808cd"
                    }
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "Indicates whether the operation is successful."
                    }
                  },
                  "example": {
                    "success": true
                  }
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/active_invoice_cycle_information/{invoice_id}": {
      "get": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "getActiveInvoiceCycle",
        "summary": "List the active retry cycles for an invoice",
        "description": "Gets information of active retry cycles that have not been completed for an invoice in Configurable Payment Retry.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "invoice_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of an invoice."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETActiveInvoiceCycleResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/active_debit_memo_cycle_information/{debit_memo_id}": {
      "get": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "getActiveDebitMemoCycle",
        "summary": "List the active retry cycles for a debit memo",
        "description": "Gets information of active retry cycles that have not been completed for a debit memo in Configurable Payment Retry.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "debit_memo_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of a debit memo."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETActiveDebitMemoCycleResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/active_account_cycle_information/{account_id}": {
      "get": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "getActiveAccountCycle",
        "summary": "List the active retry cycles for an account",
        "description": "Gets information of active retry cycles that have not been completed for an account in Configurable Payment Retry.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of an account."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETActiveAccountCycleResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/invoice_cycle_history/{invoice_id}": {
      "get": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "getInvoiceCycleHistory",
        "summary": "List the retry cycle history for an invoice",
        "description": "Gets information of all retry cycles for an invoice in Configurable Payment Retry.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "invoice_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of an invoice."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETInvoiceCycleHistoryResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/debit_memo_cycle_history/{debit_memo_id}": {
      "get": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "getDebitMemoCycleHistory",
        "summary": "List the retry cycle history for a debit memo.",
        "description": "Gets information of all retry cycles for a debit memo in Configurable Payment Retry.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "debit_memo_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of a debit memo."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETDebitMemoCycleHistoryResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/account_cycle_history/{account_id}": {
      "get": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "getAccountCycleHistory",
        "summary": "List the retry cycle history for an account",
        "description": "Gets information of all retry cycles for an account in Configurable Payment Retry.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of an account."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETAccountCycleHistoryResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/execute_invoice_payment/{invoice_id}": {
      "put": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "putExecuteInvoicePayment",
        "summary": "Execute the invoice payment",
        "description": "For all active retry cycles associated with an invoice, schedules the next payment retry attempt to occur in the next hourly payment processor run.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "invoice_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of an invoice."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "Indicates whether the operation is successful."
                    },
                    "message": {
                      "type": "string",
                      "description": "The response message."
                    }
                  },
                  "example": {
                    "success": true,
                    "message": "Payments with the following IDs enqueued for processing: [290, 291]"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/execute_debit_memo_payment/{debit_memo_id}": {
      "put": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "putExecuteDebitMemoPayment",
        "summary": "Execute the debit memo payment",
        "description": "For all active retry cycles associated with a debit memo, schedules the next payment retry attempt to occur in the next hourly payment processor run.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "debit_memo_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of a debit memo."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "Indicates whether the operation is successful."
                    },
                    "message": {
                      "type": "string",
                      "description": "The response message."
                    }
                  },
                  "example": {
                    "success": true,
                    "message": "Payments with the following IDs enqueued for processing: [300]"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/execute_account_payments/{account_id}": {
      "put": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "putExecuteAccountPayments",
        "summary": "Execute the account payments",
        "description": "For all active retry cycles associated with an account, schedules the next payment retry attempt to occur in the next hourly payment processor run.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of an account."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "Indicates whether the operation is successful."
                    },
                    "message": {
                      "type": "string",
                      "description": "The response message."
                    }
                  },
                  "example": {
                    "success": true,
                    "message": "Payments with the following IDs enqueued for processing: [310, 311, 312]"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/execute_payments": {
      "post": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "postExecutePayments",
        "summary": "Execute payments",
        "description": "For all active retry cycles associated with the invoice, debit memo, and/or account IDs provided, schedules the next payment retry attempt to occur in the next hourly payment processor run.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "account_ids": {
                    "type": "array",
                    "description": "IDs of accounts.",
                    "items": {
                      "type": "string"
                    }
                  },
                  "debit_memo_ids": {
                    "type": "array",
                    "description": "IDs of debit memos.",
                    "items": {
                      "type": "string"
                    }
                  },
                  "invoice_ids": {
                    "type": "array",
                    "description": "IDs of invoices.",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "account_ids": [
                    "2c92c0f96bd69165016bdcbf55ad5e62"
                  ],
                  "invoice_ids": [
                    "2c92c0fa7853052701785a38c6622473",
                    "2c92c0fa7849b40a01784bc5de0f760f"
                  ],
                  "debit_memo_ids": [
                    "2c92c0fa7853052701785a38f3bb267f"
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "Indicates whether the operation is successful."
                    },
                    "message": {
                      "type": "string",
                      "description": "The response message."
                    }
                  },
                  "example": {
                    "success": true,
                    "message": "Payments with the following IDs enqueued for processing: [100, 101, 110, 111, 121]"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/remove_invoice_from_retry_cycle/{invoice_id}": {
      "put": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "putRemoveInoviceFromCycle",
        "summary": "Remove an invoice from retry cycle",
        "description": "Stops any active retry cycles associated with the invoice provided.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "invoice_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of an invoice."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "Indicates whether the operation is successful."
                    },
                    "message": {
                      "type": "string",
                      "description": "The response message."
                    }
                  },
                  "example": {
                    "success": true,
                    "message": "Payments with the following IDs have been removed from the retry cycle: [290, 291]"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/remove_debit_memo_from_retry_cycle/{debit_memo_id}": {
      "put": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "putRemoveDebitMemoFromCycle",
        "summary": "Remove a debit memo from retry cycle",
        "description": "Stops any active retry cycles associated with the debit memo provided.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "debit_memo_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of a debit memo."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "Indicates whether the operation is successful."
                    },
                    "message": {
                      "type": "string",
                      "description": "The response message."
                    }
                  },
                  "example": {
                    "success": true,
                    "message": "Payments with the following IDs have been removed from the retry cycle: [301]"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/remove_account_from_retry_cycle/{account_id}": {
      "put": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "putRemoveAccountFromCycle",
        "summary": "Remove an account from retry cycle",
        "description": "Stops any active retry cycles associated with the account provided.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "account_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of an account."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "Indicates whether the operation is successful."
                    },
                    "message": {
                      "type": "string",
                      "description": "The response message."
                    }
                  },
                  "example": {
                    "success": true,
                    "message": "Payments with the following IDs have been removed from the retry cycle: [310, 311, 312]"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/payments/submit_failed_payment": {
      "post": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "postSubmitPaymentToCycle",
        "summary": "Submit a payment to retry cycle",
        "description": "This API request submits a failed payment to the Configurable Payment Retry retry cycle. The request adds the failed payment to the existing CPR retry cycle. If no CPR retry cycle exists, this request creates a new one and adds the failed payment.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "payment_id": {
                    "type": "string",
                    "description": "ID of a failed payment."
                  }
                },
                "example": {
                  "payment_id": "2c92c0867849d42301784bc9ce806c31"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "Indicates whether the operation is successful."
                    },
                    "message": {
                      "type": "string",
                      "description": "The response message."
                    }
                  },
                  "example": {
                    "success": true,
                    "message": "Payment entered into retry process"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/metrics/baseline": {
      "get": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "getBaselineMetrics",
        "summary": "List the baseline metrics",
        "description": "Gets baseline metrics for Configurable Payment Retry, including Retry Success Rate and trend, Document Success Rate and trend, and Average Days Outstanding and trend. See Response Schema for detailed descriptions of the metrics.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETBaselineMetricsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/metrics/amount_recovered": {
      "get": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "getAmountRecovered",
        "summary": "List the amount recovered metrics",
        "description": "Gets the Amount Recovered metrics, including the total amount recovered and the amount recovered over the last 30 days broken down by currency.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETAmountRecoveredResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/metrics/customer_group_over_time": {
      "get": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "getDocumentSuccessRateByCustomerGroup",
        "summary": "List the document success rate metrics by customer group",
        "description": "Gets the Document Success Rate timeseries for each customer group over the past 6 months. The data of the current month will not be included. For example, if it is April 15th today, the data for April will not be included. Data for March and earlier will be shown.\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETDocumentSuccessRateByCustomerGroupResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/metrics/customer_group": {
      "get": {
        "security": [
          {
            "basicAuth": []
          }
        ],
        "servers": [
          {
            "url": "https://payment-retry.apps.zuora.com"
          }
        ],
        "operationId": "getCustomerGroupMetrics",
        "summary": "List the customer group metrics",
        "description": "Gets the following metrics for each customer group that is in the active status:\n  - Document Success Rate and trend\n  - Retry Success Rate\n  - Average Attempts\n",
        "tags": [
          "Configurable Payment Retry"
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETCustomerGroupMetricsResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/summary-statement-runs": {
      "post": {
        "description": "Allows you to initiate the generation of a summary statement run.\nYou can specify parameters such as the run type (AdHoc or scheduled) and the target account categories (single or multiple accounts).\n",
        "operationId": "createSummaryStatementRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SummaryStatementRunRequestType"
              },
              "examples": {
                "Example1": {
                  "value": {
                    "description": "This is a sample response for accounts from a batch with a billCycleDay of 01.",
                    "runType": "AdHoc",
                    "targetAccountCategory": "AllAccounts",
                    "batchName": "Batch1",
                    "billCycleDay": "01",
                    "dateRangeType": "PreviousOneCalendarMonth",
                    "autoEmailEnabled": false
                  }
                },
                "Example2": {
                  "value": {
                    "description": "This is a sample response for accounts from a batch with open invoices.",
                    "runType": "AdHoc",
                    "targetAccountCategory": "AccountsWithOpenInvoices",
                    "batchName": "Batch1",
                    "dateRangeType": "PreviousOneCalendarMonth",
                    "autoEmailEnabled": false
                  }
                },
                "Example3": {
                  "value": {
                    "description": "This is a sample response for accounts from a batch with a billCycleDay of 01 that has open invoices.",
                    "runType": "AdHoc",
                    "targetAccountCategory": "AccountsWithOpenInvoices",
                    "batchName": "Batch1",
                    "dateRangeType": "PreviousOneCalendarMonth",
                    "autoEmailEnabled": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "402881869169397401916d8ff8d218c5",
                      "statementRunNumber": "SSR-00000004",
                      "targetAccountCategory": "AllAccounts",
                      "accountKey": null,
                      "runType": "AdHoc",
                      "batchName": "Batch51",
                      "billCycleDay": null,
                      "dateRangeType": "PreviousThreeCalendarMonth",
                      "startDate": "2024-05-01 19:13:57",
                      "endDate": "2024-07-31 19:13:57",
                      "autoEmailEnabled": false,
                      "description": "HelloWorld",
                      "status": "Pending",
                      "createdById": "402881e522cf4f9b0122cf5d82860002",
                      "createdDate": "2024-08-19 19:13:57",
                      "updatedById": "402881e522cf4f9b0122cf5d82860002",
                      "updatedDate": "2024-08-20 10:13:57.586",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/SummaryStatementRunResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding:\\ \\ gzip` request header and the response contains over 1000 bytes of data.\\n\\ \\nNote that only the following MIME types support gzipped responses:\\n\\ \\  - `application/json`\\n  - `application/xml`\\n  - `text/html`\\n  - `text/csv`\\n\\ \\  - `text/plain`\\n\"",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header. ",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header. ",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null",
                          "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                          "success": false
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header. ",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header. ",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Create a summary statement run",
        "tags": [
          "Summary Statements"
        ]
      }
    },
    "/v1/accounting-codes": {
      "get": {
        "description": "This reference describes how to query all accounting codes in your chart of accounts through the REST API.",
        "operationId": "GET_AllAccountingCodes",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize_finance_accounting"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountingCodes": [
                        {
                          "category": "Assets",
                          "createdBy": "e20b074746ec48f40147140f51e30a1a",
                          "createdOn": "2014-07-29 02:20:20",
                          "glAccountName": null,
                          "glAccountNumber": null,
                          "id": "e20b0747478025a10147816ba1c20097",
                          "name": "Accounts Receivable",
                          "notes": null,
                          "status": "Active",
                          "type": "AccountsReceivable",
                          "updatedBy": "e20b074746ec48f40147140f51e30a1a",
                          "updatedOn": "2014-07-29 02:20:20"
                        },
                        {
                          "category": "Revenue",
                          "createdBy": "e20b074746ec48f40147140f51e30a1a",
                          "createdOn": "2014-07-29 02:20:20",
                          "glAccountName": null,
                          "glAccountNumber": null,
                          "id": "e20b0747478025a10147816ba21900a0",
                          "name": "Discounts",
                          "notes": null,
                          "status": "Inactive",
                          "type": "SalesDiscounts",
                          "updatedBy": "e20b074746ec48f40147140f51e30a1a",
                          "updatedOn": "2014-09-27 22:11:07"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETAccountingCodesType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all accounting codes",
        "tags": [
          "Accounting Codes"
        ]
      },
      "post": {
        "description": "This reference describes how to create a new accounting code through the REST API. \nThe accounting code will be active as soon as it has been created.\n\n### Prerequisites\n  If you have Zuora Finance enabled on your tenant, you must have the  Configure Accounting Codes permission. \n",
        "operationId": "POST_AccountingCode",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTAccountingCodeType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "8a8081ae547aac1e01547efb61f20140",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTAccountingCodeResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an accounting code",
        "tags": [
          "Accounting Codes"
        ]
      }
    },
    "/v1/accounting-codes/{ac-id}": {
      "delete": {
        "description": "This reference describes how to delete an accounting code through the REST API.\n### Prerequisites\nIf you have Zuora Finance enabled on your tenant, then you must have the Delete Unused Accounting Code permission.\n### Limitations\nYou can only delete accounting codes that have never been associated with any transactions. An accounting code must be deactivated before you can delete it.\n",
        "operationId": "DELETE_AccountingCode",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting code you want to delete.",
            "in": "path",
            "name": "ac-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an accounting code",
        "tags": [
          "Accounting Codes"
        ]
      },
      "get": {
        "description": "This reference describes how to query an accounting code through the REST API.",
        "operationId": "GET_AccountingCode",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting code you want to query.",
            "in": "path",
            "name": "ac-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "category": "Assets",
                      "createdBy": "e20b074746ec48f40147140f51e30a1a",
                      "createdOn": "2016-05-04 01:23:07",
                      "glAccountName": null,
                      "glAccountNumber": null,
                      "id": "8a8081ae547aac1e01547efb61f20140",
                      "name": "CASH",
                      "notes": null,
                      "status": "Active",
                      "success": true,
                      "type": "Cash",
                      "updatedBy": "e20b074746ec48f40147140f51e30a1a",
                      "updatedOn": "2016-05-05 20:07:38"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETAccountingCodeItemType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an accounting code",
        "tags": [
          "Accounting Codes"
        ]
      },
      "put": {
        "description": "This reference describes how to update an existing accounting code through the REST API.\n### Prerequisites\n  If you have Zuora Finance enabled on your tenant, you must have the  Manage Accounting Code permission. \n### Limitations\nYou can only update accounting codes that are not already associated with any transactions.\n",
        "operationId": "PUT_AccountingCode",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting code you want to update.",
            "in": "path",
            "name": "ac-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTAccountingCodeType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an accounting code",
        "tags": [
          "Accounting Codes"
        ]
      }
    },
    "/v1/accounting-codes/{ac-id}/activate": {
      "put": {
        "description": "This reference describes how to activate an accounting code through the REST API.\n\nPrerequisites\n-------------\nIf you have Zuora Finance enabled on your tenant, you must have the Manage Accounting Code permission. \n",
        "operationId": "PUT_ActivateAccountingCode",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting code you want to activate.",
            "in": "path",
            "name": "ac-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Activate an accounting code",
        "tags": [
          "Accounting Codes"
        ]
      }
    },
    "/v1/accounting-codes/{ac-id}/deactivate": {
      "put": {
        "description": "This reference describes how to deactivate an accounting code through the REST API.\n\n### Prerequisites\nIf you have Zuora Finance enabled on your tenant, you must have the Manage Accounting Code permission.\n### Limitations\nYou can only deactivate accounting codes that are not associated with any transactions. \nYou cannot disable accounting codes of type AccountsReceivable.\n",
        "operationId": "PUT_DeactivateAccountingCode",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting code you want to deactivate.",
            "in": "path",
            "name": "ac-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Deactivate an accounting code",
        "tags": [
          "Accounting Codes"
        ]
      }
    },
    "/v1/accounting-periods": {
      "get": {
        "description": "Retrieves all accounting periods on your tenant.",
        "operationId": "GET_AllAccountingPeriods",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize_finance_accounting"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountingPeriods": [
                        {
                          "createdBy": "e20b074746ec48f40147140f51e30a1a",
                          "createdOn": "2016-03-16 23:17:25",
                          "endDate": "2016-03-31",
                          "fileIds": {
                            "accountsReceivableAccountAgingDetailExportFileId": "8a8081ae5374904f01538340274a13f4",
                            "accountsReceivableInvoiceAgingDetailExportFileId": "8a8081ae5374904f01538340273013f3",
                            "arRollForwardDetailExportFileId": null,
                            "fxRealizedGainAndLossDetailExportFileId": null,
                            "fxUnrealizedGainAndLossDetailExportFileId": null,
                            "revenueDetailCsvFileId": "8a8081ae5374904f0153834033221418",
                            "revenueDetailExcelFileId": "8a8081ae5374904f0153834032e41417",
                            "unprocessedChargesFileId": null
                          },
                          "fiscalYear": 2016,
                          "id": "8a8081ae5374904f01538338b66e1005",
                          "name": "Mar 2016",
                          "notes": "",
                          "runTrialBalanceEnd": null,
                          "runTrialBalanceErrorMessage": "Error creating the trial balance: exchange rate from USD to GBP on 08/03/2015 is not available.  Please import the rate and run trial balance again.",
                          "runTrialBalanceStart": "2016-03-16 23:25:22",
                          "runTrialBalanceStatus": "Error",
                          "startDate": "2016-03-01",
                          "status": "Open",
                          "updatedBy": "e20b074746ec48f40147140f51e30a1a",
                          "updatedOn": "2016-03-16 23:25:22"
                        },
                        {
                          "createdBy": "e20b074746ec48f40147140f51e30a1a",
                          "createdOn": "2016-03-16 23:17:50",
                          "endDate": "2016-04-30",
                          "fileIds": {
                            "accountsReceivableAccountAgingDetailExportFileId": "8a8081ae5374904f0153833e9a7a1364",
                            "accountsReceivableInvoiceAgingDetailExportFileId": "8a8081ae5374904f0153833e9a651363",
                            "arRollForwardDetailExportFileId": null,
                            "fxRealizedGainAndLossDetailExportFileId": null,
                            "fxUnrealizedGainAndLossDetailExportFileId": null,
                            "revenueDetailCsvFileId": "8a8081ae5374904f0153833ea2d613af",
                            "revenueDetailExcelFileId": "8a8081ae5374904f0153833ea2c813ae",
                            "unprocessedChargesFileId": null
                          },
                          "fiscalYear": 2016,
                          "id": "8a8081ae5374904f0153833918af1007",
                          "name": "Apr 2016",
                          "notes": "",
                          "runTrialBalanceEnd": null,
                          "runTrialBalanceErrorMessage": null,
                          "runTrialBalanceStart": "2016-03-16 23:23:40",
                          "runTrialBalanceStatus": "Error",
                          "startDate": "2016-04-01",
                          "status": "Open",
                          "updatedBy": "e20b074746ec48f40147140f51e30a1a",
                          "updatedOn": "2016-03-16 23:23:40"
                        },
                        {
                          "createdBy": "e20b074746ec48f40147140f51e30a1a",
                          "createdOn": "2016-03-16 23:23:29",
                          "endDate": "2016-05-31",
                          "fileIds": {
                            "accountsReceivableAccountAgingDetailExportFileId": null,
                            "accountsReceivableInvoiceAgingDetailExportFileId": null,
                            "arRollForwardDetailExportFileId": null,
                            "fxRealizedGainAndLossDetailExportFileId": null,
                            "fxUnrealizedGainAndLossDetailExportFileId": null,
                            "revenueDetailCsvFileId": "8a8081ae54c2eabb0154c307e2920034",
                            "revenueDetailExcelFileId": "8a8081ae54c2eabb0154c307e27e0033",
                            "unprocessedChargesFileId": null
                          },
                          "fiscalYear": 2016,
                          "id": "8a8081ae5374904f0153833e4590132d",
                          "name": "May 2016",
                          "notes": "",
                          "runTrialBalanceEnd": null,
                          "runTrialBalanceErrorMessage": null,
                          "runTrialBalanceStart": "2016-05-18 01:42:30",
                          "runTrialBalanceStatus": "Error",
                          "startDate": "2016-05-01",
                          "status": "Open",
                          "updatedBy": "e20b074746ec48f40147140f51e30a1a",
                          "updatedOn": "2016-05-18 01:42:30"
                        },
                        {
                          "createdBy": "402881e522cf4f9b0122cf5d82860002",
                          "createdOn": "2014-07-28 23:52:46",
                          "endDate": null,
                          "fileIds": {
                            "accountsReceivableAccountAgingDetailExportFileId": null,
                            "accountsReceivableInvoiceAgingDetailExportFileId": null,
                            "arRollForwardDetailExportFileId": null,
                            "fxRealizedGainAndLossDetailExportFileId": null,
                            "fxUnrealizedGainAndLossDetailExportFileId": null,
                            "revenueDetailCsvFileId": null,
                            "revenueDetailExcelFileId": null,
                            "unprocessedChargesFileId": null
                          },
                          "fiscalYear": 0,
                          "id": "e20b0747478025a1014780e489a60002",
                          "name": "Open-Ended",
                          "notes": null,
                          "runTrialBalanceEnd": null,
                          "runTrialBalanceErrorMessage": null,
                          "runTrialBalanceStart": null,
                          "runTrialBalanceStatus": "Pending",
                          "startDate": "2016-06-01",
                          "status": "Open",
                          "updatedBy": "e20b074746ec48f40147140f51e30a1a",
                          "updatedOn": "2016-03-16 23:23:29"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETAccountingPeriodsType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all accounting periods",
        "tags": [
          "Accounting Periods"
        ]
      },
      "post": {
        "description": "Creates an accounting period.\nPrerequisites\n-------------\n* You must have Zuora Finance enabled on your tenant.\n* You must have the Create Accounting Period user permission.\n\nLimitations\n-----------\n* When creating the first accounting period on your tenant, the start date must be equal to or earlier than the date of the earliest transaction on the tenant.\n* Start and end dates of accounting periods must be contiguous. For example, if one accounting period ends on January 31, the next period must start on February 1.\n* If you have the Revenue Recognition Package and have enabled the \"Monthly recognition over time\" revenue recognition model, the accounting period start date and end date must be on the first day and last day of the month, respectively. Note that the start and end dates do not necessarily have to be in the same month.",
        "operationId": "POST_AccountingPeriod",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTAccountingPeriodType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "7b7181ae547aac1e01547efb61f20162",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTAccountingPeriodResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an accounting period",
        "tags": [
          "Accounting Periods"
        ]
      }
    },
    "/v1/accounting-periods/{ap-id}": {
      "delete": {
        "description": "Deletes an accounting period.\n\n### Prerequisites\n* You must have Zuora Finance enabled on your tenant.\n* You must have the Delete Accounting Period user permission. See [Finance Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/f_Finance_Roles).\n \n### Limitations\nThe accounting period to be deleted:\n  * Must be the most recent accounting period.\n  * Must be an open accounting period.\n  * Must have no revenue distributed into it.\n  * Must not have any active journal entries.\n  * Must not be the open-ended accounting period.\n  * Must not be in the process of running a trial balance.\n",
        "operationId": "DELETE_AccountingPeriod",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting period you want to delete.",
            "in": "path",
            "name": "ap-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an accounting period",
        "tags": [
          "Accounting Periods"
        ]
      },
      "get": {
        "description": "Retrieves an accounting period.\n\n**Prerequisites**: You must have Zuora Finance enabled on your tenant.\n",
        "operationId": "GET_AccountingPeriod",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting period you want to get.",
            "in": "path",
            "name": "ap-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "createdBy": "e20b074746ec48f40147140f51e30a1a",
                      "createdOn": "2014-11-25 22:21:22",
                      "endDate": "2014-10-31",
                      "fileIds": {
                        "accountsReceivableAccountAgingDetailExportFileId": "8a8081ae5002967c015012f1230e0914",
                        "accountsReceivableInvoiceAgingDetailExportFileId": "8a8081ae5002967c015012f122f10913",
                        "accountsReceivableDebitMemoAgingDetailExportFileId": "8a8081ae5002967c015012f122f40913",
                        "arRollForwardDetailExportFileId": "8a8081ae5002967c015012f15d7b09e2",
                        "fxRealizedGainAndLossDetailExportFileId": "8a8081ae5002967c015012f151a609ba",
                        "fxUnrealizedGainAndLossDetailExportFileId": "8a8081ae5002967c015012f150b509b8",
                        "revenueDetailCsvFileId": "8a8081ae5002967c015012f129a10926",
                        "revenueDetailExcelFileId": "8a8081ae5002967c015012f129870925",
                        "unprocessedChargesFileId": null
                      },
                      "fiscalYear": 2014,
                      "id": "e20b074749d2a38b0149eac2e9550aa9",
                      "name": "Oct 2014",
                      "notes": "",
                      "runTrialBalanceEnd": "2015-09-28 00:53:36",
                      "runTrialBalanceErrorMessage": null,
                      "runTrialBalanceStart": "2015-09-28 00:53:13",
                      "runTrialBalanceStatus": "Completed",
                      "startDate": "2014-10-01",
                      "status": "Closed",
                      "success": true,
                      "updatedBy": "e20b074746ec48f40147140f51e30a1a",
                      "updatedOn": "2015-09-28 00:53:13"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETAccountingPeriodType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an accounting period",
        "tags": [
          "Accounting Periods"
        ]
      },
      "put": {
        "description": "\nUpdates an accounting period.\n\nPrerequisites\n-------------\n\n* You must have Zuora Finance enabled on your tenant.\n\n* You must have the Create Accounting Period user permission. See [Finance Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/f_Finance_Roles).\n\nLimitations\n-----------\n\n* You can update the start date of only the earliest accounting period on your tenant. You cannot update the start date of later periods.\n\n* If you update the earliest accounting period, the start date must be equal to or earlier than the date of the earliest transaction on the tenant.\n\n* Start and end dates of accounting periods must be contiguous. For example, if one accounting period ends on January 31, the next period must start on February 1.\n\n* If you have the Revenue Recognition Package and have enabled the \"Monthly recognition over time\" revenue recognition model, the accounting period start date and end date must be on the first day and last day of the month, respectively. Note that the start and end dates do not necessarily have to be in the same month.\n\n* You cannot update the start date or end date of an accounting period if:\n  * Any revenue has been distributed into the period.\n  * The period has any active journal entries.\n",
        "operationId": "PUT_UpdateAccountingPeriod",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting period you want to update.",
            "in": "path",
            "name": "ap-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTAccountingPeriodType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an accounting period",
        "tags": [
          "Accounting Periods"
        ]
      }
    },
    "/v1/accounting-periods/{ap-id}/close": {
      "put": {
        "description": "Close an accounting period by accounting period ID.\n\nPrerequisites\n-------------\nYou must have Zuora Finance enabled on your tenant. You must have the Manage Close Process and Run Trial Balance user permissions.\n\nLimitations\n-----------\n* The accounting period cannot already be closed.\n* The accounting period cannot be in the process of running a trial balance.\n* All earlier accounting periods must be closed.\n* There must be no required action items for the accounting period. See Reconcile Transactions Before Closing an Accounting Period for more information.\n\nNotes\n-----\nWhen you close an accounting period in Zuora, a trial balance is automatically run for that period. A successful response means only that the accounting period is now closed, but does not mean that the trial balance has successfully completed.",
        "operationId": "PUT_CloseAccountingPeriod",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting period you want to close.",
            "in": "path",
            "name": "ap-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Close an accounting period",
        "tags": [
          "Accounting Periods"
        ]
      }
    },
    "/v1/accounting-periods/{ap-id}/pending-close": {
      "put": {
        "description": "Sets an accounting period to pending close.\n\n\nPrerequisites\n-------------\n\n* You must have Zuora Finance enabled on your tenant.\n* You must have the Manage Close Process and Run Trial Balance user permissions.\n\n            \nLimitations \n -----------\n \n * The accounting period cannot be closed or pending close.\n \n * The accounting period cannot be in the process of running a trial balance.\n \n * All earlier accounting periods must be closed.\n\n \n\n \nNotes\n-----\nWhen you set an accounting period to pending close in Zuora, a trial balance is automatically run for that period. A response of `{ \"success\": true }`  means only that the accounting period status is now pending close, but does not mean that the trial balance has successfully completed. You can use the Get Accounting Period REST API call to view details about the outcome of the trial balance.\n",
        "operationId": "PUT_PendingCloseAccountingPeriod",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting period you want to set to pending close.",
            "in": "path",
            "name": "ap-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Set an accounting period to pending close",
        "tags": [
          "Accounting Periods"
        ]
      }
    },
    "/v1/accounting-periods/{ap-id}/reopen": {
      "put": {
        "description": "Re-opens an accounting period.\nPrerequisites\n-------------\n* You must have Zuora Finance enabled on your tenant.\n* You must have the Manage Close Process and Run Trial Balance user permissions.\n\nLimitations\n-----------\n* The accounting period must be closed or pending close.\n* You can only re-open an accounting period that is immediately previous to an open period.",
        "operationId": "PUT_ReopenAccountingPeriod",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting period that you want to re-open.",
            "in": "path",
            "name": "ap-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Reopen an accounting period",
        "tags": [
          "Accounting Periods"
        ]
      }
    },
    "/v1/accounting-periods/{ap-id}/run-trial-balance": {
      "put": {
        "description": "Runs the trial balance for an accounting period. \n\nPrerequisites\n-------------\n\n* You must have Zuora Finance enabled on your tenant.\n\n* You must have the Manage Close Process and Run Trial Balance user permissions. See [Finance Roles](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/User_Roles/f_Finance_Roles).\n\n          \nLimitations \n-----------\n \n * The accounting period must be open.\n \n * The accounting period cannot already be in the process of running a trial balance.\n\n \nNotes\n-----\nThe trial balance is run asynchronously. A response of `{ \"success\": true }` means only that the trial balance has started processing, but does not mean that the trial balance has successfully completed. You can use the [Get Accounting Period](https://developer.zuora.com/api-references/api/operation/GET_AccountingPeriod) REST API call to view details about the outcome of the trial balance.\n",
        "operationId": "PUT_RunTrialBalance",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "ID of the accounting period for which you want to run a trial balance.",
            "in": "path",
            "name": "ap-id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Run trial balance",
        "tags": [
          "Accounting Periods"
        ]
      }
    },
    "/v1/journal-entries": {
      "post": {
        "description": "This REST API reference describes how to manually create a summary journal entry. Request and response field descriptions and sample code are provided.\n### Requirements\n1.The sum of debits must equal the sum of credits in the summary journal entry.\n\n2.The following applies only if you use foreign currency conversion:\n  * If you have configured Aggregate transactions with different currencies during a Journal Run to \"Yes\", the value of the **currency** field must be the same as your tenant's home currency. That is, you must create journal entries using your home currency.\n  * All journal entries in an accounting period must either all be aggregated or all be unaggregated. You cannot have a mix of aggregated and unaggregated journal entries in the same accounting period.\n",
        "operationId": "POST_SummaryJournalEntry",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTJournalEntryType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "journalEntryNumber": "JE-00000001",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTJournalEntryResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a summary journal entry",
        "tags": [
          "Summary Journal Entries"
        ]
      }
    },
    "/v1/journal-entries/journal-runs/{jr-number}": {
      "get": {
        "description": "\nThis REST API reference describes how to retrieve information about all summary journal entries in a journal run.\n",
        "operationId": "GET_AllSummaryJournalEntries",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_page"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_REQUEST_pageSize_finance_revenue"
          },
          {
            "description": "Journal run number.",
            "in": "path",
            "name": "jr-number",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "journalEntries": [
                        {
                          "accountingPeriodName": "Dec'16",
                          "aggregateCurrency": true,
                          "currency": "USD",
                          "homeCurrency": "USD",
                          "journalEntryDate": "2016-12-31",
                          "journalEntryItems": [
                            {
                              "accountingCodeName": "Accounts Receivable",
                              "accountingCodeType": "AccountsReceivable",
                              "amount": 100,
                              "glAccountName": "Accounts Receivable",
                              "glAccountNumber": "10-001-000-1234",
                              "homeCurrencyAmount": 100,
                              "type": "Debit"
                            },
                            {
                              "accountingCodeName": "Sales Revenue",
                              "accountingCodeType": "SalesRevenue",
                              "amount": 100,
                              "glAccountName": "Sales Revenue",
                              "glAccountNumber": "10-001-000-1000",
                              "homeCurrencyAmount": 100,
                              "type": "Credit"
                            }
                          ],
                          "notes": "note",
                          "number": "JE-00000006",
                          "segments": [
                            {
                              "segmentName": "Seg1",
                              "segmentValue": "seg value"
                            }
                          ],
                          "status": "Created",
                          "timePeriodEnd": "2016-12-31",
                          "timePeriodStart": "2016-12-01",
                          "transactionType": "Invoice Item",
                          "transferredToAccounting": "No"
                        }
                      ],
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETJournalEntriesInJournalRunType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all summary journal entries in a journal run",
        "tags": [
          "Summary Journal Entries"
        ]
      }
    },
    "/v1/journal-entries/{je-number}": {
      "delete": {
        "description": "This reference describes how to delete a summary journal entry using the REST API.\n\nYou must have the \"Delete Cancelled Journal Entry\" user permission enabled to delete summary journal entries.\n\nA summary journal entry must be canceled before it can be deleted.\n",
        "operationId": "DELETE_SummaryJournalEntry",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Journal entry number in the format JE-00000001.",
            "in": "path",
            "name": "je-number",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a summary journal entry",
        "tags": [
          "Summary Journal Entries"
        ]
      },
      "get": {
        "description": "This REST API reference describes how to get information about a summary journal entry by its journal entry number.\n",
        "operationId": "GET_SummaryJournalEntry",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "",
            "in": "path",
            "name": "je-number",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "accountingPeriodName": "Jan'16",
                      "aggregateCurrency": true,
                      "currency": "USD",
                      "homeCurrency": "USD",
                      "journalEntryDate": "2016-01-31",
                      "journalEntryItems": [
                        {
                          "accountingCodeName": "Deferred Revenue",
                          "accountingCodeType": "DeferredRevenue",
                          "amount": 424.08,
                          "glAccountName": null,
                          "glAccountNumber": null,
                          "homeCurrencyAmount": 424.08,
                          "type": "Debit"
                        },
                        {
                          "accountingCodeName": "Professional Services Revenue",
                          "accountingCodeType": "SalesRevenue",
                          "amount": 424.08,
                          "glAccountName": null,
                          "glAccountNumber": null,
                          "homeCurrencyAmount": 424.08,
                          "type": "Credit"
                        }
                      ],
                      "notes": null,
                      "number": "JE-00000001",
                      "segments": [
                        {
                          "segmentName": "Customer Code",
                          "segmentValue": "A00000001"
                        },
                        {
                          "segmentName": "Charge Type",
                          "segmentValue": "OneTime"
                        }
                      ],
                      "status": "Created",
                      "success": true,
                      "timePeriodEnd": "2016-01-31",
                      "timePeriodStart": "2016-01-01",
                      "transactionType": "Revenue Event Item",
                      "transferDateTime": null,
                      "transferredBy": null,
                      "transferredToAccounting": null
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETJournalEntryDetailType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a summary journal entry",
        "tags": [
          "Summary Journal Entries"
        ]
      }
    },
    "/v1/journal-entries/{je-number}/basic-information": {
      "put": {
        "description": "\nThis REST API reference describes how to update the basic information of a summary journal entry. Request and response field descriptions and sample code are provided.\n",
        "operationId": "PUT_BasicSummaryJournalEntry",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Journal entry number in the format JE-00000001.",
            "in": "path",
            "name": "je-number",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTBasicSummaryJournalEntryType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a summary journal entry",
        "tags": [
          "Summary Journal Entries"
        ]
      }
    },
    "/v1/journal-entries/{je-number}/cancel": {
      "put": {
        "description": "\nThis reference describes how to cancel a summary journal entry using the REST API.\n    \nYou must have the \"Cancel Journal Entry\" user permission enabled to cancel summary journal entries.\n    \nA summary journal entry cannot be canceled if its Transferred to Accounting status is \"Yes\" or \"Processing\".\n",
        "operationId": "PUT_SummaryJournalEntry",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Journal entry number in the format JE-00000001.",
            "in": "path",
            "name": "je-number",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a summary journal entry",
        "tags": [
          "Summary Journal Entries"
        ]
      }
    },
    "/v1/journal-runs": {
      "post": {
        "description": "This REST API reference describes how to create a journal run. Request and response field descriptions and sample code are provided.\n",
        "operationId": "POST_JournalRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTJournalRunType"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "journalRunNumber": "JR-00000008",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTJournalRunResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a journal run",
        "tags": [
          "Journal Runs"
        ]
      }
    },
    "/v1/journal-runs/{jr-number}": {
      "delete": {
        "description": "This reference describes how to delete a journal run using the REST API.\n                      \n You can only delete journal runs that have already been canceled.\n                      \n You must have the \"Delete Cancelled Journal Run\" Zuora Finance user permission enabled to delete journal runs.\n",
        "operationId": "DELETE_JournalRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Journal run number. Must be a valid journal run number in the format `JR-00000001`.\n",
            "in": "path",
            "name": "jr-number",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a journal run",
        "tags": [
          "Journal Runs"
        ]
      },
      "get": {
        "description": "This REST API reference describes how to get information about a journal run. Request and response field descriptions and sample code are provided.\n",
        "operationId": "GET_JournalRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Journal run number. Must be a valid journal run number in the format `JR-00000001`.\n",
            "in": "path",
            "name": "jr-number",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "executedOn": "2014-11-15 22:05:12",
                      "journalEntryDate": "2016-02-02",
                      "number": "JR-00000002",
                      "segmentationRuleName": "s1",
                      "status": "Completed",
                      "success": true,
                      "targetEndDate": "2016-03-31",
                      "targetStartDate": "2016-03-01",
                      "totalJournalEntryCount": 2,
                      "transactionTypes": [
                        {
                          "type": "Invoice Item"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETJournalRunType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a journal run",
        "tags": [
          "Journal Runs"
        ]
      }
    },
    "/v1/journal-runs/{jr-number}/cancel": {
      "put": {
        "description": "This reference describes how to cancel a journal run using the REST API.\n          \nThe summary journal entries in the journal run are canceled asynchronously. See the \"Example\" section below for details.\n          \nYou must have the \"Cancel Journal Run\" Zuora Finance user permission enabled to cancel journal runs.\n\n### Notes\nWhen you cancel a journal run, the summary journal entries associated with that journal run are canceled asynchronously. A response of `{ \"success\": true }` means only that the specified journal run has a status of \"Pending\", \"Error\", or \"Completed\" and therefore can be canceled, but does not mean that the whole journal run was successfully canceled.\n\nFor example, let's say you want to cancel journal run JR-00000075. The journal run status is \"Completed\" and it contains ten journal entries. One of the journal entries has its Transferred to Accounting status set to \"Yes\", meaning that the entry cannot be canceled. The workflow might go as follows:\n1. You make an API call to cancel the journal run.\n2. The journal run status is \"Completed\", so you receive a response of `{ \"success\": true }`.\n3. Zuora begins asynchronously canceling journal entries associated with the journal run. The journal entry whose Transferred to Accounting status is \"Yes\" fails to be canceled. The cancelation process continues, and the other journal entries are successfully canceled.\n4. The journal run status remains as \"Completed\". The status does not change to \"Canceled\" because the journal run still contains a journey entry that is not canceled.\n",
        "operationId": "PUT_JournalRun",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "Journal run number. Must be a valid journal run number in the format JR-00000001. \nYou can only cancel a journal run whose status is \"Pending\", \"Error\", or \"Completed\".\n",
            "in": "path",
            "name": "jr-number",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Cancel a journal run",
        "tags": [
          "Journal Runs"
        ]
      }
    },
    "/v1/bulk": {
      "post": {
        "description": "Describes how to perform a mass action through the REST API. \n\nUsing this API method, you send a multipart/form-data request containing a `.csv` file with data about the mass action you want to perform. Zuora returns a key and then asynchronously processes the mass action. You can use the key to get details about the result of the mass action.\n\nIf you want to use this operation to perform the Mass Payment Upload (MPU) mass action, see [Mass Payment Upload](https://knowledgecenter.zuora.com/Billing/Finance/Mass_Updater/Mass_Payment_Upload) for more information.\n",
        "operationId": "POST_MassUpdater",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "description": "File containing data about the mass action you want to perform. The file requirements are the same as when uploading a file through the Mass Updater in the Zuora UI. The file must be a `.csv` file or a zipped `.csv` file.\n\nThe maximum file size is 4 MB.\n\nThe data in the file must be formatted according to the mass action type you want to perform.\n",
                    "format": "binary",
                    "type": "string"
                  },
                  "params": {
                    "description": "Container for the following fields. You must format this parameter as a JSON object.\n\n* `actionType` (string, **Required**) - Type of mass action you want to perform. The following mass actions are supported: `UpdateAccountingCode`, `CreateRevenueSchedule`, `UpdateRevenueSchedule`, `DeleteRevenueSchedule`, `ImportFXRate`, and `MPU`.\n\n* `checksum` (string) - An MD5 checksum that is used to validate the integrity of\n  the uploaded file. The checksum is a 32-character string.\n",
                    "type": "string"
                  }
                },
                "required": [
                  "file",
                  "params"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "bulkKey": "402892f04c97b89a014c97bb30a50003",
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/POSTMassUpdateResponseType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Perform a mass action",
        "tags": [
          "Mass Updater"
        ],
        "x-code-samples": [
          {
            "label": "cURL",
            "lang": "curl",
            "source": "curl -X POST -H \"Authorization: Bearer f21f017e4724445d8647b1f0de7ed6f1\" -F \"file=@CreateRevenueSchedules.csv\" -F \"params=\"{\\\"actionType\\\": \\\"CreateRevenueSchedule\\\"}\" \"https://rest.zuora.com/v1/bulk\"\n"
          }
        ]
      }
    },
    "/v1/bulk/{bulk-key}": {
      "get": {
        "description": "Describes how to get information about the result of a mass action through the REST API. \n",
        "operationId": "GET_MassUpdater",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "String of 32 characters that identifies a mass action. You get the bulk-key after performing a mass action through the REST API.\n",
            "in": "path",
            "name": "bulk-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "actionType": "UpdateAccountingCode",
                      "endedOn": "2015-04-07 14:32:01",
                      "errorCount": 1,
                      "inputSize": 354,
                      "outputSize": 350,
                      "outputType": "(url:.csv.zip)",
                      "outputURL": "https://rest.zuora.com/v1/files/402892c84c9285b1014c9293f5320007",
                      "processedCount": 3,
                      "startedOn": "2015-04-07 14:22:11",
                      "status": "Completed",
                      "success": true,
                      "successCount": 2,
                      "totalCount": 3,
                      "uploadedBy": "smith@example.com",
                      "uploadedOn": "2015-04-07 14:22:09"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETMassUpdateType"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all results of a mass action",
        "tags": [
          "Mass Updater"
        ]
      }
    },
    "/v1/bulk/{bulk-key}/stop": {
      "put": {
        "description": "Describes how to stop a mass action through the REST API. You can stop a mass action when its status is Pending or Processing. After you have stopped a mass action, you can get the mass action result to see details of the mass action.\n\n- If you stop a mass action when its status is Pending, no response file is generated because no records have been processed.\n\n- If you stop a mass action when its status is Processing, a response file is generated. You can check the response file to see which records have been processed and which have not. In the response file, the **Success** column has the value `Y` (successful) or `N` (failed) for processed records, and a blank value for unprocessed records.\n\nRecords that have already been processed when a mass action is stopped are not rolled back.\n",
        "operationId": "PUT_MassUpdater",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "String of 32 characters that identifies a mass action. You get the bulk-key after performing a mass action through the REST API.\n",
            "in": "path",
            "name": "bulk-key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Version"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "success": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              },
              "Concurrency-Limit-Type": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Type"
              },
              "Concurrency-Limit-Limit": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Limit"
              },
              "Concurrency-Limit-Remaining": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Concurrency_Limit_Remaining"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "4XX": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "processId": "738CBB9234B47A47",
                      "reasons": [
                        {
                          "code": "58730222",
                          "message": "orderDate may not be null"
                        }
                      ],
                      "requestId": "d7479cf6-b410-4630-b841-268ccd48f0d2",
                      "success": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/CommonResponse"
                }
              }
            },
            "description": "Request Errors",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information. ",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_RequestId"
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Stop a mass action",
        "tags": [
          "Mass Updater"
        ]
      }
    },
    "/events/event-triggers": {
      "post": {
        "description": "When you create an event trigger, you must specify the base object and define the trigger condition.\n\n### Specify the base object\n\nUse `baseObject` field to specify which object to define a trigger on. You can define an event trigger on any of the following objects:\n  \n* Account\n* AccountingCode\n* AccountingPeriod\n* Amendment\n* BillingRun\n* Contact\n* CreditBalanceAdjustment\n* CreditMemo\n* CreditMemoApplication\n* CreditMemoApplicationItem\n* CreditMemoItem\n* CreditMemoPart\n* DebitMemo\n* DebitMemoItem\n* DeliveryAdjustment\n* Feature\n* Fulfillment\n* Fund\n* Invoice\n* InvoiceAdjustment\n* InvoiceItem\n* InvoiceItemAdjustment\n* JournalEntry\n* JournalEntryItem\n* Order\n* OrderAction\n* OrderLineItem\n* Payment\n* PaymentApplication\n* PaymentMethod\n* PaymentPart\n* PaymentSchedule\n* PaymentScheduleItem\n* Product\n* ProductFeature\n* ProductRatePlan\n* ProductRatePlanCharge\n* ProductRatePlanChargeTier\n* RatePlan\n* RatePlanCharge\n* RatePlanChargeTier\n* RatingResult\n* Refund\n* RefundApplication\n* RefundPart\n* RevenueEvent\n* RevenueEventItem\n* RevenueSchedule\n* RevenueScheduleItem\n* Subscription\n* SubscriptionChargeDeliverySchedule\n* SubscriptionChargePriceInterval\n* SubscriptionChargePriceIntervalTier\n* SubscriptionOffer\n* SubscriptionProductFeature\n* TaxationItem\n* UpdaterDetail\n* Usage\n* ValidityPeriodSummary\n  \nIn addition to the above Zuora standard objects, you can also use custom objects as base objects for custom events.\n\n#### Tenant level base objects and tenant level event triggers\n\nZuora identifies the following base objects and custom objects as the tenant level base objects:\n  \n* AccountingCode\n* AccountingPeriod\n* BillingRun\n* Feature\n* JournalEntry\n* JournalEntryItem\n* Product\n* ProductFeature\n* ProductRatePlan\n* ProductRatePlanCharge\n* ProductRatePlanChargeTier\n\nEvent triggers defined on tenant level base objects are tenant level event triggers. Notifications associated with tenant level events are system notifications.\n  \n**Note:** Tenant level event triggers and system notifications are only available in the default profile.\n\n### Define the trigger condition\n\nThe `condition` field is a [JEXL](http://commons.apache.org/proper/commons-jexl/) expression that specifies when to trigger events. The expression can contain fields from the object that the trigger is defined on.\n\n**Note:** The condition cannot contain fields from [data source](https://knowledgecenter.zuora.com/DC_Developers/M_Export_ZOQL) objects that are joined to the object that the trigger is defined on.\n\nFor example, the following condition causes an event to be triggered whenever an invoice is posted with an amount greater than 1000:\n\n  ```changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 1000.0```\n\nWhere:\n\n* `changeType` is a keyword that specifies the type of change that occurred to the Invoice object. For all objects, the supported values of `changeType` are `INSERT`, `UPDATE`,  and `DELETE`.\n* `Invoice.Status` is the value of the Invoice object's `Status` field after the change occurred.\n* `Invoice.Status_old` is the value of the Invoice object's `Status` field before the change occurred.\n\nIn the above example, the value of `baseObject` is `Invoice`.\n\n#### Limitations\n\nThis event trigger has the following limitations:\n  \n* Base object values for Zuora standard objects are case sensitive. For example, `PaymentMethod` is correct, and `Paymentmethod` or `paymentmethod` is incorrect.\n* Base object values for custom objects must be lowercase. For example, `default__vehicle`.\n* The INSERT change type is not supported on RatePlan base objects.\n* The INSERT change type is not supported on SubscriptionProductFeature base objects.\n* When creating custom events, you cannot match fields of the RatePlanCharge object against constant values for the `condition` field. For example, the following condition will cause errors: `RatePlanCharge.ShippingProcessStatus__c == 'Shipping Confirmed'`, where `Shipping Confirmed` is a constant value.\n* Fields on objects are case-sensitive. For example, `PaymentMethod.createdbyid` can result in errors. The correct format is `PaymentMethod.CreatedById`.\n* A condition cannot contain fields from data source objects that are joined to the base object.\n* Do not create duplicate events because they will be either merged or deleted. Zuora considers events that have the same trigger condition as duplicate events, regardless of event type names.\n\nSee [Custom Events](https://knowledgecenter.zuora.com/Central_Platform/Notifications/A_Z_Custom_Events) for more information.\n",
        "operationId": "POST_EventTrigger",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostEventTriggerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "5a70564ad08c412fb98e06a80c365c93",
                      "baseObject": "Invoice",
                      "condition": "changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 1000.0",
                      "eventType": {
                        "name": "LargeInvoicePosted",
                        "displayName": "Large Invoice Posted",
                        "namespace": "user.notification"
                      },
                      "active": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/EventTrigger"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"reasons\": [\n    {\n      \"code\": \"MissingRequiredField\",\n      \"message\": \"eventType is missing\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"reasons\": [\n    {\n      \"code\": \"SystemError\",\n      \"message\": \"internal server error\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an event trigger",
        "tags": [
          "Custom Event Triggers"
        ]
      },
      "get": {
        "operationId": "GET_EventTriggers",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The Zuora object that trigger condition is defined upon. The format of the value in this field depends on the base object type:\n- Standard object: object name, which should follow the pattern ^[A-Z][\\w\\-]*$. For example, `Invoice`.\n- Custom object: `default__<custom_object_api_name>`. For example, `default__vehicle`.\n",
            "in": "query",
            "name": "baseObject",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The event type name. Should be specified in the pattern: ^[A-Za-z]{1,}[\\w\\-]*$",
            "in": "query",
            "name": "eventTypeName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The status of the event trigger.",
            "in": "query",
            "name": "active",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The first index of the query result. Default to 0 if absent, and the minimum is 0.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "The maximum number of data records to be returned. Default to 10 if absent.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "data": [
                        {
                          "id": "ac1ee535e8524858a72edb464212729d",
                          "baseObject": "Invoice",
                          "condition": "changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 1000.0",
                          "description": "Trigger an event when an invoice is posted with amount over 1000",
                          "eventType": {
                            "name": "LargeInvoicePosted",
                            "displayName": "Large Invoice Posted",
                            "description": "An invoice is posted with amount over 1000"
                          },
                          "active": true
                        }
                      ],
                      "next": "https://api.zuora.com/events/event-triggers?start=1&limit=1"
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/EventTrigger"
                      },
                      "type": "array"
                    },
                    "next": {
                      "description": "The link to the next page. No value if it is last page.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"reasons\": [\n    {\n      \"code\": \"FieldConstraintViolation\",\n      \"message\": \"start should be >= 0\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"reasons\": [\n    {\n      \"code\": \"SystemError\",\n      \"message\": \"internal server error\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List event triggers",
        "tags": [
          "Custom Event Triggers"
        ]
      }
    },
    "/events/event-triggers/{id}": {
      "get": {
        "operationId": "GET_EventTrigger",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "ac1ee535e8524858a72edb464212729d",
                      "baseObject": "Invoice",
                      "condition": "changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 1000.0",
                      "description": "Trigger an event when an invoice is posted with amount over 1000",
                      "eventType": {
                        "name": "LargeInvoicePosted",
                        "displayName": "Large Invoice Posted",
                        "description": "An invoice is posted with amount over 1000"
                      },
                      "active": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/EventTrigger"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"reasons\": [\n    {\n      \"code\": \"ObjectNotFound\",\n      \"message\": \"no event trigger found with the given id\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"reasons\": [\n    {\n      \"code\": \"SystemError\",\n      \"message\": \"internal server error\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an event trigger",
        "tags": [
          "Custom Event Triggers"
        ]
      },
      "put": {
        "description": "",
        "operationId": "PUT_EventTrigger",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutEventTriggerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "5a70564ad08c412fb98e06a80c365c93",
                      "baseObject": "Invoice",
                      "condition": "changeType == 'UPDATE' && Invoice.Status == 'Posted' && Invoice.Status_old != 'Posted' && Invoice.Amount > 1000.0",
                      "description": "Trigger the event when an invoice is posted with amount over 1000",
                      "eventType": {
                        "name": "LargeInvoicePosted",
                        "displayName": "Large Invoice Posted",
                        "namespace": "user.notification"
                      },
                      "active": true
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/EventTrigger"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"reasons\": [\n    {\n      \"code\": \"ObjectNotFound\",\n      \"message\": \"no event trigger found with the given id\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"reasons\": [\n    {\n      \"code\": \"SystemError\",\n      \"message\": \"internal server error\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an event trigger",
        "tags": [
          "Custom Event Triggers"
        ]
      },
      "delete": {
        "description": "",
        "operationId": "DELETE_EventTrigger",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"reasons\": [\n    {\n      \"code\": \"ObjectNotFound\",\n      \"message\": \"no event trigger found with the given id\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"reasons\": [\n    {\n      \"code\": \"SystemError\",\n      \"message\": \"internal server error\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an event trigger",
        "tags": [
          "Custom Event Triggers"
        ]
      }
    },
    "/events/scheduled-events": {
      "post": {
        "description": "To create a custom scheduled event, you must specify the base object, the base field and the scheduled time.\n",
        "operationId": "POST_ScheduledEvent",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostScheduledEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetScheduledEventResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "FieldConstraintViolation",
                          "message": "name should follow ^[A-Za-z]{1,}[\\w\\-]*$"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a scheduled event",
        "tags": [
          "Custom Scheduled Events"
        ]
      },
      "get": {
        "operationId": "GET_ScheduledEvents",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The name of the scheduled event. Should be specified in the pattern: ^[A-Za-z]{1,}[\\\\w\\\\-]*$",
            "in": "query",
            "name": "eventTypeName",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The base object that the scheduled event is defined upon. Should be specified in the pattern: ^[A-Z][\\\\w\\\\-]*$",
            "in": "query",
            "name": "apiObject",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The base field of the base object in the `apiObject` field. Should be specified in the pattern: ^[A-Z][\\\\w\\\\-]*$",
            "in": "query",
            "name": "apiField",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Indicate whether the scheduled event is active or inactive.",
            "in": "query",
            "name": "active",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "The first index of the query result. Default to 0 if absent, and the minimum is 0.",
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "default": 0,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "description": "The maximum number of data records to be returned. Default to 10 if absent.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/GetScheduledEventResponse"
                      },
                      "type": "array"
                    },
                    "next": {
                      "description": "The link to the next page. No value if it is last page.",
                      "example": "/events/scheduled-events?start=10&limit=10",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List all scheduled events",
        "tags": [
          "Custom Scheduled Events"
        ]
      }
    },
    "/events/scheduled-events/{id}": {
      "get": {
        "operationId": "GET_ScheduledEventByID",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID of the scheduled event.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetScheduledEventResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "ResourceNotFound",
                          "message": "no resource found with the given identifier event-type by tenant id:10315 and id:59b8b0bfb3b94ce6a8fb96aed64d73c5"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a scheduled event by ID",
        "tags": [
          "Custom Scheduled Events"
        ]
      },
      "put": {
        "operationId": "UPDATE_ScheduledEventByID",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID of the scheduled event.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutScheduledEventRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetScheduledEventResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "FieldConstraintViolation",
                          "message": "name should follow ^[A-Za-z]{1,}[\\w\\-]*$"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a scheduled event by ID",
        "tags": [
          "Custom Scheduled Events"
        ]
      },
      "delete": {
        "operationId": "DELETE_ScheduledEventByID",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "description": "The ID of the scheduled event.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "ResourceNotFound",
                          "message": "no resource found with the given identifier event-type by tenant id:10315 and id:59b8b0bfb3b94ce6a8fb96aed64d73c5"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "SystemError",
                          "message": "internal server error"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a scheduled event by ID",
        "tags": [
          "Custom Scheduled Events"
        ]
      }
    },
    "/notifications/notification-definitions": {
      "post": {
        "description": "Creates a notification definition. If a filter rule is specified, it will be evaluated to see if the notification definition is qualified to handle the incoming events during runtime. If the notification is qualified, it will send the email and invoke the callout if it has an email template or a callout.\n\nThis operation supports creating notification definitions for all event types:\n\n- To create a notification definition for a standard event, you must specify the `eventCategory` field. For more information about standard event category codes, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/A_Standard_Events/Standard_Event_Category_Code_for_Events_and_Notifications\" target=\"_blank\">Standard event category code for events and notifications</a>.\n- To create a notification definition for a Zuora custom event, custom event, or custom scheduled event, you must specify the `eventTypeName` field. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/A_C_Zuora_Custom_Events\" target=\"_blank\">Zuora custom events</a>, [Custom event triggers](https://developer.zuora.com/api-references/api/tag/Custom-Event-Triggers/), and [Custom scheduled events](https://developer.zuora.com/api-references/api/tag/Custom-Scheduled-Events/).\n  \nYou must specify either `eventCategory` or `eventTypeName`, but not both at the same time.\n",
        "operationId": "POST_Create_Notification_Definition",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "Create a notification definition": {
                  "value": {
                    "name": "Account Edit Notification",
                    "eventTypeName": "AccountEdit",
                    "emailActive": true,
                    "emailTemplateId": "f11e498862584a10a05b83ea70119659",
                    "communicationProfileId": "2c92c0f9446cd49501447539d6a72815"
                  }
                },
                "Create a notification definition with filter rules": {
                  "value": {
                    "name": "Account Edit Notification",
                    "eventTypeName": "AccountEdit",
                    "emailActive": true,
                    "emailTemplateId": "f11e498862584a10a05b83ea70119659",
                    "communicationProfileId": "2c92c0f9446cd49501447539d6a72815",
                    "filterRule": {
                      "condition": "Account.Balance >= _VIP_BALANCE_AMOUNT && Account.Status == _ACCOUNT_STATUS",
                      "description": "Filter rule to test if an account is a VIP account",
                      "parameters": {
                        "_ACCOUNT_STATUS": {
                          "description": "The status of the VIP Account",
                          "displayName": "VIP Account Status",
                          "options": [
                            "Draft",
                            "Active",
                            "Canceled"
                          ],
                          "valueType": "STRING"
                        },
                        "_VIP_BALANCE_AMOUNT": {
                          "description": "The minimum account balance",
                          "displayName": "VIP Account Balance",
                          "options": null,
                          "valueType": "BIG_DECIMAL"
                        }
                      }
                    },
                    "filterRuleParams": {
                      "_ACCOUNT_STATUS": "Active",
                      "_VIP_BALANCE_AMOUNT": "100000.0"
                    }
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/POSTPublicNotificationDefinitionRequest"
              }
            }
          },
          "description": "The request body used to create the notification definition.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETPublicNotificationDefinitionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"ConstraintViolated\",\n  \"message\":\"The email template is defined on a different EventType other than the notification's\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"404\",\n  \"message\":\"HTTP 404 Not Found\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"405\",\n  \"message\":\"HTTP 405 Method Not Allowed\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"415\",\n  \"message\":\"HTTP 415 Unsupported Media Type\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"500\",\n  \"message\":\"A temporary problem in the service occurred, you can retry later.\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a notification definition",
        "tags": [
          "Notifications"
        ]
      },
      "get": {
        "description": "Queries notification definitions with the specified filters.\n",
        "operationId": "GET_Query_Notification_Definitions",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "allowEmptyValue": true,
            "description": "The first index of the query result.",
            "in": "query",
            "name": "start",
            "schema": {
              "default": 1,
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The maximum number of results the query should return.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 20,
              "format": "int32",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "Id of the profile.",
            "in": "query",
            "name": "profileId",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          },
          {
            "description": "The event category code for a standard event, on which the notification definition is created.\n\nFor the list of supported standard event category codes, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/A_Standard_Events/Standard_Event_Category_Code_for_Events_and_Notifications\" target=\"_blank\">Standard event category code for events and notifications</a>.\n\nYou cannot specify `eventCategory` and `eventTypeName` at the same time.\n",
            "in": "query",
            "name": "eventCategory",
            "schema": {
              "type": "number"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The name of the Zuora custom event, custom event, or custom scheduled event on which the notification definition is created.\n\nYou cannot specify `eventCategory` and `eventTypeName` at the same time.\n",
            "in": "query",
            "name": "eventTypeName",
            "schema": {
              "type": "string"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The ID of the email template.",
            "in": "query",
            "name": "emailTemplateId",
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/GETPublicNotificationDefinitionResponse"
                      },
                      "type": "array"
                    },
                    "next": {
                      "description": "The URI to query the next page of data, e.g. '/notification-definitions?start=1&limit=10'. The start equals request's start+limit, and the limit equals the request's limit. If the current page is the last page, this value is null.",
                      "example": "/notification-definitions?start=1&limit=10",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"404\",\n  \"message\":\"HTTP 404 Not Found\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"405\",\n  \"message\":\"HTTP 405 Method Not Allowed\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"415\",\n  \"message\":\"HTTP 415 Unsupported Media Type\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"500\",\n  \"message\":\"A temporary problem in the service occurred, you can retry later.\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List notification definitions",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/notifications/notification-definitions/{id}": {
      "get": {
        "description": "Queries the notification definition of the given ID.\n",
        "operationId": "GET_Get_Notification_Definition",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the notification definition.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETPublicNotificationDefinitionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"404\",\n  \"message\":\"HTTP 404 Not Found\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora request ID passed from the request or generated by the API Gateway.",
                "schema": {
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"405\",\n  \"message\":\"HTTP 405 Method Not Allowed\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"415\",\n  \"message\":\"HTTP 415 Unsupported Media Type\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"500\",\n  \"message\":\"A temporary problem in the service occurred, you can retry later.\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve a notification definition",
        "tags": [
          "Notifications"
        ]
      },
      "put": {
        "description": "Updates a notification definition.\n",
        "operationId": "PUT_Update_Notification_Definition",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the notification definition to be updated.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTPublicNotificationDefinitionRequest"
              }
            }
          },
          "description": "The request body of the notification definition to be updated.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETPublicNotificationDefinitionResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"ConstraintViolated\",\n  \"message\":\"The email template is defined on a different EventType other than the notification's\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"404\",\n  \"message\":\"HTTP 404 Not Found\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"405\",\n  \"message\":\"HTTP 405 Method Not Allowed\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"415\",\n  \"message\":\"HTTP 415 Unsupported Media Type\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"500\",\n  \"message\":\"A temporary problem in the service occurred, you can retry later.\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update a notification definition",
        "tags": [
          "Notifications"
        ]
      },
      "delete": {
        "description": "Deletes a notification definition.\n",
        "operationId": "DELETE_Delete_Notification_Definition",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the notification definition to be deleted.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"ObjectNotFound\",\n  \"message\":\"The notification definition with id 6e569e1e05f040eda51a927b140c0ac2 does not exist\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"404\",\n  \"message\":\"HTTP 404 Not Found\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"405\",\n  \"message\":\"HTTP 405 Method Not Allowed\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"415\",\n  \"message\":\"HTTP 415 Unsupported Media Type\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"500\",\n  \"message\":\"A temporary problem in the service occurred, you can retry later.\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete a notification definition",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/notifications/email-templates/import": {
      "post": {
        "description": "Creates email templates for standard or custom events if you do not specify email template IDs, or updates existing email templates if you specify valid email template IDs.\n\nFor each email template when you are creating email templates, whether the template is created for a standard event, a custom event, or a custom scheduled event is dependent on whether you specify the `eventCategory` or `eventTypeName` field.\n\n- If you specify the `eventCategory` field, the email template is created based on a standard event. See [Standard Event Categories](https://knowledgecenter.zuora.com/Central_Platform/Notifications/A_Standard_Events/Standard_Event_Category_Code_for_Notification_Histories_API) for all standard event category codes.\n- If you specify the `eventTypeName` field, the email template is created based on the corresponding custom event or custom scheduled event. See [Custom event triggers](https://developer.zuora.com/api-references/api/tag/Custom-Event-Triggers/) for more information about custom events, and [Custom scheduled events](https://developer.zuora.com/api-references/api/tag/Custom-Scheduled-Events/) for more information about custom scheduled events.\n\nThe maximum number of email templates that you can create or update by one call is 1,000.\n",
        "operationId": "POST_CreateOrUpdateEmailTemplates",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "Create an email template": {
                  "value": {
                    "allowPartialSuccess": true,
                    "emailTemplates": [
                      {
                        "active": true,
                        "name": "Account Edit Email",
                        "eventTypeName": "AccountEdit",
                        "description": "Details of the email template",
                        "fromName": "Company Co. Ltd.",
                        "fromEmailType": "TenantEmail",
                        "toEmailType": "BillToContact",
                        "replyToEmailType": "TenantEmail",
                        "emailSubject": "Account {{DataSource.Account.AccountNumber}} has been edited",
                        "emailBody": "Dear user,<p>the account {{DataSource.Account.AccountNumber}} has been edited. <p>Company Co. Ltd."
                      }
                    ]
                  }
                },
                "Update an email template": {
                  "value": {
                    "allowPartialSuccess": true,
                    "emailTemplates": [
                      {
                        "id": "f11e498862584a10a05b83ea70119659",
                        "name": "Account Edit Email",
                        "eventTypeName": "AccountEdit",
                        "description": "Details of the email template",
                        "fromName": "Company Co. Ltd.",
                        "fromEmailType": "TenantEmail",
                        "toEmailType": "BillToContact",
                        "replyToEmailType": "TenantEmail",
                        "emailSubject": "Account {{DataSource.Account.AccountNumber}} has been edited",
                        "emailBody": "Dear user,<p>the account {{DataSource.Account.AccountNumber}} has been edited. <p>Company Co. Ltd."
                      }
                    ]
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/POSTCreateOrUpdateEmailTemplateRequest"
              }
            }
          },
          "description": "The request body to import or update email templates.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrUpdateEmailTemplatesResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create or update email templates",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/notifications/email-templates": {
      "post": {
        "description": "Creates an email template. \n\nThis operation supports creating the email template for all event types.\n\n- If you specify the `eventCategory` field, the email template is created based on a standard event. See [Standard Event Categories](https://knowledgecenter.zuora.com/Central_Platform/Notifications/A_Standard_Events/Standard_Event_Category_Code_for_Notification_Histories_API) for all standard event category codes.\n- If you specify the `eventTypeName` field, the email template is created based on the corresponding custom event or custom scheduled event. See [Custom event triggers](https://developer.zuora.com/api-references/api/tag/Custom-Event-Triggers/) for more information about custom events, and [Custom scheduled events](https://developer.zuora.com/api-references/api/tag/Custom-Scheduled-Events/) for more information about custom scheduled events.\n",
        "operationId": "POST_Create_Email_Template",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTPublicEmailTemplateRequest"
              }
            }
          },
          "description": "The request body to create an email template.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETPublicEmailTemplateResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"ObjectNotFound\",\n  \"message\":\"eventType {com.zuora.notification, AccountEdit} does not exist\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"404\",\n  \"message\":\"HTTP 404 Not Found\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"405\",\n  \"message\":\"HTTP 405 Method Not Allowed\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"415\",\n  \"message\":\"HTTP 415 Unsupported Media Type\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"500\",\n  \"message\":\"A temporary problem in the service occurred, you can retry later.\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create an email template",
        "tags": [
          "Notifications"
        ]
      },
      "get": {
        "description": "Queries email templates. This operation supports querying email templates for all event types.\n",
        "operationId": "GET_Query_Email_Templates",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "allowEmptyValue": true,
            "description": "The first index of the query result.",
            "in": "query",
            "name": "start",
            "schema": {
              "default": 1,
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The maximum number of results the query should return.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 20,
              "format": "int32",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The event category code for standard events.",
            "in": "query",
            "name": "eventCategory",
            "schema": {
              "type": "number"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The name of the custom event or custom scheduled event.",
            "in": "query",
            "name": "eventTypeName",
            "schema": {
              "type": "string"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The name of the email template.",
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "data": [
                        {
                          "active": true,
                          "bccEmailAddress": "user@example.com",
                          "ccEmailAddress": "user@example.com",
                          "ccEmailType": "SpecificEmails",
                          "createdBy": "6e569e1e05f040eda51a927b140c0ac3",
                          "createdOn": "2017-04-18T07:36:19.798Z",
                          "description": "Email when an account is edited",
                          "emailBody": "Dear user,<p>the account <Account.Name> has been edited. </p><p>Example Co. Ltd.</p>",
                          "emailHeaders": {
                            "My-Header-1": "Header value 1",
                            "My-Header-2": "Header value 2"
                          },
                          "emailSubject": "Account <Account.Number> has been edited",
                          "encodingType": "UTF8",
                          "eventTypeName": "AccountEdit",
                          "fromEmailType": "TenantEmail",
                          "fromName": "Example Co. Ltd.",
                          "id": "6e569e1e05f040eda51a927b140c0ac2",
                          "isHtml": true,
                          "name": "Account Edit Email",
                          "replyToEmailType": "TenantEmail",
                          "toEmailAddress": "DummyEmailAddress@example.com",
                          "toEmailType": "SpecificEmails",
                          "updatedBy": "6e569e1e05f040eda51a927b140c0ac4",
                          "updatedOn": "2017-04-18T07:36:19.798Z"
                        },
                        {
                          "active": true,
                          "bccEmailAddress": "user@example.com",
                          "ccEmailAddress": "user@example.com",
                          "ccEmailType": "SpecificEmails",
                          "createdBy": "6e569e1e05f040eda51a927b140c0ac3",
                          "createdOn": "2017-04-18T07:37:20.798Z",
                          "description": "Email when an invoice is posted",
                          "emailBody": "Dear user,<p>the invoice <Invoice.Number> has been posted. </p><p>Example Co. Ltd.</p>",
                          "emailHeaders": {
                            "My-Header-1": "Header value 1",
                            "My-Header-2": "Header value 2"
                          },
                          "emailSubject": "Invoice <Invoice.Number> has been posted",
                          "encodingType": "UTF8",
                          "eventCategory": 1110,
                          "fromEmailAddress": "EmailAddress1@example.com",
                          "fromEmailType": "SpecificEmail",
                          "fromName": "Example Co. Ltd.",
                          "id": "6e569e1e05f040eda51a927b70e31f4e",
                          "isHtml": true,
                          "name": "Invoice Posted Email",
                          "replyToEmailType": "TenantEmail",
                          "toEmailType": "BillToContact",
                          "updatedBy": "6e569e1e05f040eda51a927b140c0ac4",
                          "updatedOn": "2017-04-18T07:37:20.798Z"
                        }
                      ],
                      "next": "/notification-definitions?start=1&limit=10"
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/GETPublicEmailTemplateResponse"
                      },
                      "type": "array"
                    },
                    "next": {
                      "description": "The URI to query the next page of data, e.g. '/notification-definitions?start=1&limit=10'. The start equals request's start+limit, and the limit equals the request's limit. If the current page is the last page, this value is null.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"404\",\n  \"message\":\"HTTP 404 Not Found\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"405\",\n  \"message\":\"HTTP 405 Method Not Allowed\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"415\",\n  \"message\":\"HTTP 415 Unsupported Media Type\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"500\",\n  \"message\":\"A temporary problem in the service occurred, you can retry later.\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "List email templates",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/notifications/email-templates/{id}": {
      "get": {
        "description": "Queries the email template based on the specified ID. This operation supports retrieving the email template for all event types.\n",
        "operationId": "GET_Get_Email_Template",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the email template.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "active": true,
                      "bccEmailAddress": "user@example.com",
                      "ccEmailAddress": "user@example.com",
                      "ccEmailType": "SpecificEmails",
                      "createdBy": "6e569e1e05f040eda51a927b140c0ac3",
                      "createdOn": "2017-04-18T07:36:19.798Z",
                      "description": "Email when an account is edited",
                      "emailBody": "Dear user,<p>the account <Account.Name> has been edited. </p><p>Example Co. Ltd.</p>",
                      "emailHeaders": {
                        "My-Header-1": "Header value 1",
                        "My-Header-2": "Header value 2"
                      },
                      "emailSubject": "Account <Account.Number> has been edited",
                      "encodingType": "UTF8",
                      "eventTypeName": "AccountEdit",
                      "fromEmailType": "TenantEmail",
                      "fromName": "Example Co. Ltd.",
                      "id": "6e569e1e05f040eda51a927b140c0ac2",
                      "isHtml": true,
                      "name": "Account Edit Email",
                      "replyToEmailType": "TenantEmail",
                      "toEmailAddress": "DummyEmailAddress@example.com",
                      "toEmailType": "SpecificEmails",
                      "updatedBy": "6e569e1e05f040eda51a927b140c0ac4",
                      "updatedOn": "2017-04-18T07:36:19.798Z"
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPublicEmailTemplateResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n    examples:\n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"ObjectNotFound\",\n  \"message\":\"The email template with id 6e569e1e05f040eda51a927b140c0ac2 does not exist in this tenant\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"404\",\n  \"message\":\"HTTP 404 Not Found\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"405\",\n  \"message\":\"HTTP 405 Method Not Allowed\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"415\",\n  \"message\":\"HTTP 415 Unsupported Media Type\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"500\",\n  \"message\":\"A temporary problem in the service occurred, you can retry later.\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Retrieve an email template",
        "tags": [
          "Notifications"
        ]
      },
      "put": {
        "description": "Updates an email template. This operation supports updating the email template for all event types.\n",
        "operationId": "PUT_Update_Email_Template",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the email template to be updated.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTPublicEmailTemplateRequest"
              }
            }
          },
          "description": "The request body to update an email template.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GETPublicEmailTemplateResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"ObjectNotFound\",\n  \"message\":\"eventType {com.zuora.notification, AccountEdit} does not exist\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"404\",\n  \"message\":\"HTTP 404 Not Found\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"405\",\n  \"message\":\"HTTP 405 Method Not Allowed\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"415\",\n  \"message\":\"HTTP 415 Unsupported Media Type\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"500\",\n  \"message\":\"A temporary problem in the service occurred, you can retry later.\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Update an email template",
        "tags": [
          "Notifications"
        ]
      },
      "delete": {
        "description": "Deletes an email template. This operation supports deleting an email template for all event types.\n",
        "operationId": "DELETE_Delete_Email_Template",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the email template to be deleted.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"ObjectNotFound\",\n  \"message\":\"The email template with id 6e569e1e05f040eda51a927b140c0ac2 does not exist in this tenant\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"404\",\n  \"message\":\"HTTP 404 Not Found\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"405\",\n  \"message\":\"HTTP 405 Method Not Allowed\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"415\",\n  \"message\":\"HTTP 415 Unsupported Media Type\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": "{\n  \"code\":\"500\",\n  \"message\":\"A temporary problem in the service occurred, you can retry later.\"\n}"
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Delete an email template",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/notifications/callout-templates/import": {
      "post": {
        "summary": "Create or update callout templates",
        "operationId": "CreateOrUpdateCalloutTemplates",
        "tags": [
          "Notifications"
        ],
        "description": "Creates callout templates for standard or custom events if you do not specify callout template IDs, or updates existing callout templates if you specify valid callout template IDs.\n\nFor each callout template when you are creating callout templates, whether the template is created for a standard event, a custom event, or a custom scheduled event is dependent on whether you specify the `eventCategory` or `eventTypeName` field.\n\n- If you specify the `eventCategory` field, the callout template is created based on a standard event. See <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/A_Standard_Events/Standard_Event_Category_Code_for_Events_and_Notifications\" target=\"_blank\">Standard event category code for events and notifications</a> for all standard event category codes.\n- If you specify the `eventTypeName` field, the callout template is created based on the corresponding custom event, Zuora custom event, or custom scheduled event. See [Custom event triggers](https://developer.zuora.com/api-references/api/tag/Custom-Event-Triggers/) for more information about custom events, and [Custom scheduled events](https://developer.zuora.com/api-references/api/tag/Custom-Scheduled-Events/) for more information about custom scheduled events.\n\nThe maximum number of callout templates that you can create or update by one call is 1,000.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTCreateOrUpdateCalloutTemplateRequest"
              }
            }
          },
          "description": "The request body to import or update callout templates.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrUpdateEmailTemplatesResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      }
    },
    "/notifications/callout-templates": {
      "post": {
        "summary": "Create a callout template",
        "operationId": "CreateCalloutTemplate",
        "tags": [
          "Notifications"
        ],
        "description": "Creates a callout template.\n\nThis operation supports creating the callout template for all event types:\n\n- To create a callout template for a standard event, you must specify the `eventCategory` field. For more information about standard event category codes, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/A_Standard_Events/Standard_Event_Category_Code_for_Events_and_Notifications\" target=\"_blank\">Standard event category code for events and notifications</a>.\n- To create a callout template for a Zuora custom event, custom event, or custom scheduled event, you must specify the `eventTypeName` field. For more information, see <a href=\"https://knowledgecenter.zuora.com/Zuora_Central_Platform/Events_and_Notifications/A_C_Zuora_Custom_Events\" target=\"_blank\">Zuora custom events</a>, [Custom event triggers](https://developer.zuora.com/api-references/api/tag/Custom-Event-Triggers/), and [Custom scheduled events](https://developer.zuora.com/api-references/api/tag/Custom-Scheduled-Events/).\n  \nYou must specify either `eventCategory` or `eventTypeName`, but not both at the same time.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/POSTPublicCalloutTemplateRequest"
              },
              "examples": {
                "Callout - Without authentication": {
                  "value": {
                    "name": "Account Edit",
                    "eventTypeName": "AccountEdit",
                    "calloutBaseurl": "https://www.example.com/callout/AccountEdit",
                    "httpMethod": "POST"
                  }
                },
                "Callout - Base authentication": {
                  "value": {
                    "name": "Account Edit",
                    "eventTypeName": "AccountEdit",
                    "calloutBaseurl": "https://www.example.com/callout/AccountEdit",
                    "httpMethod": "POST",
                    "requiredAuth": true,
                    "calloutAuth": {
                      "username": "name",
                      "password": "pw123"
                    }
                  }
                },
                "Callout - OAuth 2.0 authentication": {
                  "value": {
                    "name": "Account Edit",
                    "eventTypeName": "AccountEdit",
                    "calloutBaseurl": "https://www.example.com/callout/AccountEdit",
                    "httpMethod": "POST",
                    "requiredOauth2": true,
                    "oauth2ProviderId": "8ad099a98b94d51e018ba3beb9ed6c29"
                  }
                }
              }
            }
          },
          "description": "The request body to create a callout template.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "dcc5a61ee76e496c984206131b5b83e7",
                      "createdBy": "8a90e08282f4ed040182f67bab2902ff",
                      "createdOn": "2024-06-17T04:07:13.000 UTC",
                      "updatedBy": "8a90e08282f4ed040182f67bab2902ff",
                      "updatedOn": "2024-06-17T04:07:13.000 UTC",
                      "eventTypeName": "AccountEdit",
                      "eventTypeNamespace": "user.notification",
                      "name": "Account Edit",
                      "description": "Callout when an account is edited",
                      "active": true,
                      "calloutBaseurl": "https://www.example.com/callout/AccountEdit",
                      "calloutParams": null,
                      "calloutHeaders": null,
                      "httpMethod": "POST",
                      "requiredAuth": false,
                      "calloutAuth": null,
                      "requiredOauth2": false,
                      "oauth2ProviderId": null,
                      "calloutRetry": true,
                      "contentType": "APPLICATION_JSON",
                      "useCustomRequestBody": false,
                      "customRequestBody": null,
                      "certificate": null,
                      "hmacKey": null,
                      "hmacValue": null,
                      "hmacData": null,
                      "hmacAlgorithm": null,
                      "hmacSecret": null,
                      "hmacOutputFormat": null,
                      "confirmSuccessFromResponseContent": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPublicCalloutTemplateResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "ObjectNotFound",
                          "message": "eventType {com.zuora.notification, AccountEdit} does not exist"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "404",
                          "message": "HTTP 404 Not Found"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "405",
                          "message": "HTTP 405 Method Not Allowed"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "415",
                          "message": "HTTP 415 Unsupported Media Type"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "415",
                          "message": "A temporary problem in the service occurred, you can retry later."
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      },
      "get": {
        "summary": "List callout templates",
        "operationId": "GetCalloutTemplates",
        "tags": [
          "Notifications"
        ],
        "description": "Queries callout templates. This operation supports querying callout templates for all event types.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "allowEmptyValue": true,
            "description": "The first index of the query result.",
            "in": "query",
            "name": "start",
            "schema": {
              "default": 1,
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The maximum number of results the query should return.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 20,
              "format": "int32",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The event category code of a standard event to which the callout templates you want to query relates.",
            "in": "query",
            "name": "eventCategory",
            "schema": {
              "type": "number"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The name of a Zuora custom event, custom event, or custom scheduled event to which the callout templates you want to query relates.\n",
            "in": "query",
            "name": "eventTypeName",
            "schema": {
              "type": "string"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The name of the callout template.",
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "data": [
                        {
                          "id": "dcc5a61ee76e496c984206131b5b83e7",
                          "createdBy": "8a90e08282f4ed040182f67bab2902ff",
                          "createdOn": "2024-06-17T04:07:13.000 UTC",
                          "updatedBy": "8a90e08282f4ed040182f67bab2902ff",
                          "updatedOn": "2024-06-17T04:07:13.000 UTC",
                          "eventTypeName": "AccountEdit",
                          "eventTypeNamespace": "user.notification",
                          "name": "Account Edit",
                          "description": "Callout when an account is edited",
                          "active": true,
                          "calloutBaseurl": "https://www.example.com/callout/AccountEdit",
                          "calloutParams": null,
                          "calloutHeaders": null,
                          "httpMethod": "POST",
                          "requiredAuth": false,
                          "calloutAuth": null,
                          "requiredOauth2": false,
                          "oauth2ProviderId": null,
                          "calloutRetry": true,
                          "contentType": "APPLICATION_JSON",
                          "useCustomRequestBody": false,
                          "customRequestBody": null,
                          "certificate": null,
                          "hmacKey": null,
                          "hmacValue": null,
                          "hmacData": null,
                          "hmacAlgorithm": null,
                          "hmacSecret": null,
                          "hmacOutputFormat": null,
                          "confirmSuccessFromResponseContent": false
                        },
                        {
                          "id": "a745b9dd39154591b6cc618465aeb133",
                          "createdBy": "8a90e08282f4ed040182f67bab2902ff",
                          "createdOn": "2024-06-17T04:09:03.000 UTC",
                          "updatedBy": "8a90e08282f4ed040182f67bab2902ff",
                          "updatedOn": "2024-06-17T04:09:03.000 UTC",
                          "eventTypeName": "AccountDelete",
                          "eventTypeNamespace": "user.notification",
                          "name": "Account Delete",
                          "description": "Callout when an account is deleted",
                          "active": true,
                          "calloutBaseurl": "https://www.example.com/callout/AccountDelete",
                          "calloutParams": null,
                          "calloutHeaders": null,
                          "httpMethod": "POST",
                          "requiredAuth": false,
                          "calloutAuth": null,
                          "requiredOauth2": false,
                          "oauth2ProviderId": null,
                          "calloutRetry": true,
                          "contentType": "APPLICATION_JSON",
                          "useCustomRequestBody": false,
                          "customRequestBody": null,
                          "certificate": null,
                          "hmacKey": null,
                          "hmacValue": null,
                          "hmacData": null,
                          "hmacAlgorithm": null,
                          "hmacSecret": null,
                          "hmacOutputFormat": null,
                          "confirmSuccessFromResponseContent": false
                        }
                      ],
                      "next": "/notifications/callout-templates?start=21&limit=20"
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/GETPublicCalloutTemplateResponse"
                      },
                      "type": "array"
                    },
                    "next": {
                      "description": "The URI to query the next page of data, e.g. '/notifications/callout-templates?start=21&limit=20'.\nThe start equals request's start+limit, and the limit equals the\nrequest's limit. If the current page is the last page, this value\nis null.\n",
                      "type": "string"
                    }
                  }
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "ObjectNotFound",
                          "message": "eventType {com.zuora.notification, AccountEdit} does not exist"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "404",
                          "message": "HTTP 404 Not Found"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "405",
                          "message": "HTTP 405 Method Not Allowed"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "415",
                          "message": "HTTP 415 Unsupported Media Type"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "415",
                          "message": "A temporary problem in the service occurred, you can retry later."
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      }
    },
    "/notifications/callout-templates/{id}": {
      "get": {
        "summary": "Retrieve a callout template",
        "operationId": "GetCalloutTemplte",
        "tags": [
          "Notifications"
        ],
        "description": "Queries the callout template based on the specified ID. This operation supports retrieving the callout template for all event types.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the callout template.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "dcc5a61ee76e496c984206131b5b83e7",
                      "createdBy": "8a90e08282f4ed040182f67bab2902ff",
                      "createdOn": "2024-06-17T04:07:13.000 UTC",
                      "updatedBy": "8a90e08282f4ed040182f67bab2902ff",
                      "updatedOn": "2024-06-17T04:07:13.000 UTC",
                      "eventTypeName": "AccountEdit",
                      "eventTypeNamespace": "user.notification",
                      "name": "Account Edit",
                      "description": "Callout when an account is edited",
                      "active": true,
                      "calloutBaseurl": "https://www.example.com/callout/AccountEdit",
                      "calloutParams": null,
                      "calloutHeaders": null,
                      "httpMethod": "POST",
                      "requiredAuth": false,
                      "calloutAuth": null,
                      "requiredOauth2": false,
                      "oauth2ProviderId": null,
                      "calloutRetry": true,
                      "contentType": "APPLICATION_JSON",
                      "useCustomRequestBody": false,
                      "customRequestBody": null,
                      "certificate": null,
                      "hmacKey": null,
                      "hmacValue": null,
                      "hmacData": null,
                      "hmacAlgorithm": null,
                      "hmacSecret": null,
                      "hmacOutputFormat": null,
                      "confirmSuccessFromResponseContent": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPublicCalloutTemplateResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "description": "A custom identifier for tracing the API call. If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. Otherwise, Zuora does not set this header.\n    examples:\n",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "ObjectNotFound",
                          "message": "eventType {com.zuora.notification, AccountEdit} does not exist"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "404",
                          "message": "HTTP 404 Not Found"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "405",
                          "message": "HTTP 405 Method Not Allowed"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "415",
                          "message": "HTTP 415 Unsupported Media Type"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "415",
                          "message": "A temporary problem in the service occurred, you can retry later."
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      },
      "put": {
        "summary": "Update a callout template",
        "operationId": "UpdateCalloutTemplate",
        "tags": [
          "Notifications"
        ],
        "description": "Updates a callout template. This operation supports updating the callout template for all event types.",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the callout template to be updated.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PUTPublicCalloutTemplateRequest"
              },
              "examples": {
                "Callout - Without authentication": {
                  "value": {
                    "name": "Account Edit",
                    "calloutBaseurl": "https://www.example.com/callout/AccountEdit",
                    "httpMethod": "POST"
                  }
                },
                "Callout - Base authentication": {
                  "value": {
                    "name": "Account Edit",
                    "calloutBaseurl": "https://www.example.com/callout/AccountEdit",
                    "httpMethod": "POST",
                    "requiredAuth": true,
                    "calloutAuth": {
                      "username": "name",
                      "password": "pw123"
                    }
                  }
                },
                "Callout - OAuth 2.0 authentication": {
                  "value": {
                    "name": "Account Edit",
                    "calloutBaseurl": "https://www.example.com/callout/AccountEdit",
                    "httpMethod": "POST",
                    "requiredOauth2": true,
                    "oauth2ProviderId": "8ad099a98b94d51e018ba3beb9ed6c29"
                  }
                }
              }
            }
          },
          "description": "The request body to update a callout template.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "id": "dcc5a61ee76e496c984206131b5b83e7",
                      "createdBy": "8a90e08282f4ed040182f67bab2902ff",
                      "createdOn": "2024-06-17T04:07:13.000 UTC",
                      "updatedBy": "8a90e08282f4ed040182f67bab2902ff",
                      "updatedOn": "2024-06-17T04:07:13.000 UTC",
                      "eventTypeName": "AccountEdit",
                      "eventTypeNamespace": "user.notification",
                      "name": "Account Edit",
                      "description": "Callout when an account is edited",
                      "active": true,
                      "calloutBaseurl": "https://www.example.com/callout/AccountEdit",
                      "calloutParams": null,
                      "calloutHeaders": null,
                      "httpMethod": "POST",
                      "requiredAuth": false,
                      "calloutAuth": null,
                      "requiredOauth2": false,
                      "oauth2ProviderId": null,
                      "calloutRetry": true,
                      "contentType": "APPLICATION_JSON",
                      "useCustomRequestBody": false,
                      "customRequestBody": null,
                      "certificate": null,
                      "hmacKey": null,
                      "hmacValue": null,
                      "hmacData": null,
                      "hmacAlgorithm": null,
                      "hmacSecret": null,
                      "hmacOutputFormat": null,
                      "confirmSuccessFromResponseContent": false
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GETPublicCalloutTemplateResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "ObjectNotFound",
                          "message": "eventType {com.zuora.notification, AccountEdit} does not exist"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "404",
                          "message": "HTTP 404 Not Found"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "405",
                          "message": "HTTP 405 Method Not Allowed"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "415",
                          "message": "HTTP 415 Unsupported Media Type"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "415",
                          "message": "A temporary problem in the service occurred, you can retry later."
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Delete a callout template",
        "operationId": "DeleteCalloutTemplate",
        "tags": [
          "Notifications"
        ],
        "description": "Deletes a callout template. This operation supports deleting a callout template for all event types.",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "description": "The ID of the callout template to be deleted.",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "format": "uuid",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "ObjectNotFound",
                          "message": "eventType {com.zuora.notification, AccountEdit} does not exist"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "404",
                          "message": "HTTP 404 Not Found"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "405",
                          "message": "HTTP 405 Method Not Allowed"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "415",
                          "message": "HTTP 415 Unsupported Media Type"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "415",
                          "message": "A temporary problem in the service occurred, you can retry later."
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        }
      }
    },
    "/notifications/reusable-blocks/import": {
      "post": {
        "description": "Creates reusable blocks if you do not specify block IDs, or updates existing reusable blocks if you specify valid block IDs. All fields must be provided for each reusable block you want to update.\n\nThe maximum number of reusable blocks that you can create or update by one call is 1,000.\n",
        "operationId": "createOrUpdateReusableBlocks",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "Create a reusable block": {
                  "value": {
                    "allowPartialSuccess": true,
                    "reusableBlocks": [
                      {
                        "name": "Footer Block",
                        "category": "Footers",
                        "content": "(The content of the block)"
                      }
                    ]
                  }
                },
                "Update a reusable block": {
                  "value": {
                    "allowPartialSuccess": true,
                    "reusableBlocks": [
                      {
                        "id": "385bcf09b2aa4a628098a88f62552180",
                        "active": true,
                        "name": "Header Block",
                        "number": "RB-00000010",
                        "category": "Headers",
                        "tags": [
                          "logo"
                        ],
                        "content": "(The content of the block)"
                      }
                    ]
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/CreateOrUpdateReusableBlockRequest"
              }
            }
          },
          "description": "The request body to import or update reusable blocks.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateOrUpdateReusableBlockResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create or update reusable blocks",
        "tags": [
          "Notifications"
        ]
      }
    },
    "/notifications/reusable-blocks": {
      "post": {
        "description": "Creates a reusable block for email templates, such as email headers or footers.\n",
        "operationId": "createReusableBlock",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Idempotency_Key"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePublicReusableBlockRequest"
              }
            }
          },
          "description": "The request body to create a reusable block.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPublicReusableBlockResponse"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "ObjectNotFound",
                          "message": "eventType {com.zuora.notification, AccountEdit} does not exist"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "404",
                          "message": "HTTP 404 Not Found"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "405",
                          "message": "HTTP 405 Method Not Allowed"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Method Not Allowed",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "415",
                          "message": "HTTP 415 Unsupported Media Type"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported Media Type",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "500",
                          "message": "A temporary problem in the service occurred, you can retry later."
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Internal Server Error",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          }
        },
        "summary": "Create a reusable block",
        "tags": [
          "Notifications"
        ]
      },
      "get": {
        "description": "Queries reusable blocks.\n",
        "operationId": "getReusableBlocks",
        "parameters": [
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Accept_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Content_Encoding"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Track_Id"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Entity_Ids_Single"
          },
          {
            "$ref": "#/components/parameters/GLOBAL_HEADER_Zuora_Org_Ids"
          },
          {
            "allowEmptyValue": true,
            "description": "The first index of the query result.",
            "in": "query",
            "name": "start",
            "schema": {
              "default": 1,
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The maximum number of results the query should return.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 20,
              "format": "int32",
              "maximum": 5000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "Whether to return only active reusable blocks.",
            "in": "query",
            "name": "activeOnly",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The category that the returned blocks belong to.",
            "in": "query",
            "name": "category",
            "schema": {
              "type": "string",
              "enum": [
                "Headers",
                "Footers",
                "Other"
              ]
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The name of the block the query should return.",
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            }
          },
          {
            "allowEmptyValue": true,
            "description": "The tags the returned blocks are associated with. If multiple tags are specified, only blocks that match all specified tags are returned.",
            "in": "query",
            "name": "tag",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "next": "/notifications/reusable-blocks?start=21&limit=20",
                      "data": [
                        {
                          "id": "c6af751e4a0041eebb000c51e95e6c2d",
                          "createdBy": "8a90e08282f4ed040182f67bab2902ff",
                          "createdOn": "2025-04-22T08:17:24.000 UTC",
                          "updatedBy": "8a90e08282f4ed040182f67bab2902ff",
                          "updatedOn": "2025-04-22T08:17:24.000 UTC",
                          "active": true,
                          "name": "Header Block",
                          "number": "RB-00000010",
                          "category": "Headers",
                          "tags": [],
                          "content": "(The content of the block)"
                        },
                        {
                          "id": "385bcf09b2aa4a628098a88f62552180",
                          "createdBy": "8a90e08282f4ed040182f67bab2902ff",
                          "createdOn": "2025-04-17T03:36:39.000 UTC",
                          "updatedBy": "8a90e08282f4ed040182f67bab2902ff",
                          "updatedOn": "2025-04-22T08:55:07.000 UTC",
                          "active": true,
                          "name": "Footer Block",
                          "number": "RB-00000009",
                          "category": "Footers",
                          "tags": [],
                          "content": "(The content of the block)"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/GetPublicReusableBlockResponse"
                      },
                      "type": "array"
                    },
                    "next": {
                      "description": "The URI to query the next page of data, e.g. '/notifications/reusable-blocks?start=21&limit=20'. The start equals the request's start+limit, and the limit equals the request's limit. If the current page is the last page, this value is null.\n",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "ObjectNotFound",
                          "message": "eventType {com.zuora.notification, AccountEdit} does not exist"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Bad Request",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "reasons": [
                        {
                          "code": "404",
                          "message": "HTTP 404 Not Found"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Not Found",
            "headers": {
              "Content-Encoding": {
                "description": "This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.\n\nNote that only the following MIME types support gzipped responses:\n  - `application/json`\n  - `application/xml`\n  - `text/html`\n  - `text/csv`\n  - `text/plain`\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Remaining": {
                "description": "The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "RateLimit-Reset": {
                "description": "The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.\n",
                "schema": {
                  "type": "number"
                }
              },
              "Zuora-Request-Id": {
                "description": "The Zuora internal identifier of the API call. You cannot control the value of this header.\n",
                "schema": {
                  "maxLength": 36,
                  "minLength": 36,
                  "type": "string"
                }
              },
              "Zuora-Track-Id": {
                "$ref": "#/components/headers/GLOBAL_HEADER_RESPONSE_Zuora_TrackId"
              }
            }
          },
          "405": {
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
        